feat(oa): 新增月度记账、采购计划明细和供应商信息功能
- 添加了月度记账、采购计划明细和供应商信息的实体类、BO类、控制器、Mapper接口和XML文件- 实现了基本的CRUD操作,包括列表查询、导出、详情获取、新增、修改和删除 - 为采购计划明细和供应商信息添加了关联查询
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gear.oa.mapper.GearMonthlyAccountMapper">
|
||||
|
||||
<resultMap type="com.gear.oa.domain.GearMonthlyAccount" id="GearMonthlyAccountResult">
|
||||
<result property="accountId" column="account_id"/>
|
||||
<result property="monthYear" column="month_year"/>
|
||||
<result property="totalAmount" column="total_amount"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gear.oa.mapper.GearPurchasePlanDetailMapper">
|
||||
|
||||
<resultMap type="com.gear.oa.domain.GearPurchasePlanDetail" id="GearPurchasePlanDetailResult">
|
||||
<result property="detailId" column="detail_id"/>
|
||||
<result property="detailCode" column="detail_code"/>
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="rawMaterialName" column="raw_material_name"/>
|
||||
<result property="owner" column="owner"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="unit" column="unit"/>
|
||||
<result property="unitPrice" column="unit_price"/>
|
||||
<result property="totalAmount" column="total_amount"/>
|
||||
<result property="annex" column="annex"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.GearPurchasePlanDetailVo">
|
||||
select d.detail_id,
|
||||
d.detail_code,
|
||||
d.supplier_id,
|
||||
d.raw_material_name,
|
||||
d.owner,
|
||||
d.quantity,
|
||||
d.unit,
|
||||
d.unit_price,
|
||||
d.total_amount,
|
||||
d.annex,
|
||||
d.status,
|
||||
d.remark,
|
||||
d.del_flag,
|
||||
d.create_time,
|
||||
d.create_by,
|
||||
d.update_time,
|
||||
d.update_by,
|
||||
s.name as supplierName
|
||||
from gear_purchase_plan_detail d
|
||||
left join gear_supplier s on d.supplier_id = s.supplier_id and s.del_flag = 0
|
||||
${ew.getSqlSegment()}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
41
gear-oa/src/main/resources/mapper/oa/GearSupplierMapper.xml
Normal file
41
gear-oa/src/main/resources/mapper/oa/GearSupplierMapper.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gear.oa.mapper.GearSupplierMapper">
|
||||
|
||||
<resultMap type="com.gear.oa.domain.GearSupplier" id="GearSupplierResult">
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="contactPerson" column="contact_person"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="typeId" column="type_id"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.GearSupplierVo">
|
||||
select s.supplier_id,
|
||||
s.name,
|
||||
s.contact_person,
|
||||
s.phone,
|
||||
s.address,
|
||||
s.type_id,
|
||||
t.type_name as typeName,
|
||||
s.remark,
|
||||
s.del_flag,
|
||||
s.create_time,
|
||||
s.create_by,
|
||||
s.update_time,
|
||||
s.update_by
|
||||
from gear_supplier s
|
||||
left join gear_supply_type t on s.type_id = t.type_id and t.del_flag = 0
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gear.oa.mapper.GearSupplyTypeMapper">
|
||||
|
||||
<resultMap type="com.gear.oa.domain.GearSupplyType" id="GearSupplyTypeResult">
|
||||
<result property="typeId" column="type_id"/>
|
||||
<result property="typeName" column="type_name"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user