Browse Source

[feat]:销售订单调整

dev
youjianchi 8 months ago
parent
commit
c622a473d6
  1. 2
      ruoyi-activiti/src/main/java/com/ruoyi/process/todoitem/mapper/BizTodoItemMapper.java
  2. 10
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderChild.java
  3. 25
      ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml

2
ruoyi-activiti/src/main/java/com/ruoyi/process/todoitem/mapper/BizTodoItemMapper.java

@ -71,7 +71,7 @@ public interface BizTodoItemMapper {
public List<BizTodoItem> getTodoItemListNoPaging(Map<String, Object> paraMap); public List<BizTodoItem> getTodoItemListNoPaging(Map<String, Object> paraMap);
@Select("SELECT USER_ID_ FROM ACT_ID_MEMBERSHIP WHERE GROUP_ID_ = (SELECT GROUP_ID_ FROM ACT_RU_IDENTITYLINK WHERE TASK_ID_ = #{taskId})") @Select("SELECT USER_ID_ FROM ACT_ID_MEMBERSHIP WHERE GROUP_ID_ in (SELECT GROUP_ID_ FROM ACT_RU_IDENTITYLINK WHERE TASK_ID_ = #{taskId})")
List<String> selectTodoUserListByTaskId(@Param(value = "taskId") String taskId); List<String> selectTodoUserListByTaskId(@Param(value = "taskId") String taskId);
@Select("SELECT * FROM BIZ_TODO_ITEM WHERE TASK_ID = #{taskId} AND TODO_USER_ID = #{todoUserId}") @Select("SELECT * FROM BIZ_TODO_ITEM WHERE TASK_ID = #{taskId} AND TODO_USER_ID = #{todoUserId}")

10
ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderChild.java

@ -128,6 +128,8 @@ public class SysSalesOrderChild extends BaseEntity {
@Excel(name = "未出库数量") @Excel(name = "未出库数量")
private Integer unBoundQuantity; private Integer unBoundQuantity;
private String bomId;
public Long getId() { public Long getId() {
return id; return id;
} }
@ -393,6 +395,14 @@ public class SysSalesOrderChild extends BaseEntity {
this.unBoundQuantity = unBoundQuantity; this.unBoundQuantity = unBoundQuantity;
} }
public String getBomId() {
return bomId;
}
public void setBomId(String bomId) {
this.bomId = bomId;
}
@Override @Override
public String toString() { public String toString() {
return Objects.toStringHelper(this) return Objects.toStringHelper(this)

25
ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml

@ -36,30 +36,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="useStatus" column="use_status" /> <result property="useStatus" column="use_status" />
<result property="auditStatus" column="audit_status" /> <result property="auditStatus" column="audit_status" />
<result property="bomId" column="bom_id" />
</resultMap> </resultMap>
<sql id="selectSysSalesOrderChild"> <sql id="selectSysSalesOrderChild">
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, brand, photoUrl,,unit, `describe`, select a.id, a.quoteId, a.materialId, a.materialCode, a.materialName, a.materialType, a.processMethod, a.brand, a.photoUrl,a.unit, a.`describe`,
countTax, usdTax, materialNum,materialSole, materialRmb, materialNoRmb, materialNoUsd, materialUsd, materialUsdSum, a.countTax, a.usdTax, a.materialNum,a.materialSole, a.materialRmb, a.materialNoRmb, a.materialNoUsd, a.materialUsd, a.materialUsdSum,
materialNoUsdSum, materialNoRmbSum, materialRmbSum,out_bound_quantity, un_bound_quantity, create_by, create_time, update_by, a.materialNoUsdSum, a.materialNoRmbSum, a.materialRmbSum,a.out_bound_quantity, a.un_bound_quantity, a.create_by, a.create_time, a.update_by,
update_time, remark, use_status,audit_status from sys_sales_order_child a.update_time, a.remark, a.use_status,a.audit_status
,b.id as bom_id
from sys_sales_order_child a
left join erp_bom b
on a.materialCode = b.material_no
</sql> </sql>
<select id="selectSysSalesOrderChildList" parameterType="SysSalesOrderChild" resultMap="SysSalesOrderChildResult"> <select id="selectSysSalesOrderChildList" parameterType="SysSalesOrderChild" resultMap="SysSalesOrderChildResult">
<include refid="selectSysSalesOrderChild"/> <include refid="selectSysSalesOrderChild"/>
<where> <where>
<if test="quoteId != null and quoteId !='' "> and quoteId = #{quoteId}</if> <if test="quoteId != null and quoteId !='' "> and a.quoteId = #{quoteId}</if>
<if test="materialId != null "> and materialId = #{materialId}</if> <if test="materialId != null "> and a.materialId = #{materialId}</if>
<if test="materialCode != null and materialCode != ''"> and materialCode like concat('%', #{#{materialCode}}, '%')</if> <if test="materialCode != null and materialCode != ''"> and a.materialCode like concat('%', #{#{materialCode}}, '%')</if>
<if test="materialName != null and materialName != ''"> and materialName like concat('%', #{materialName}, '%')</if> <if test="materialName != null and materialName != ''"> and a.materialName like concat('%', #{materialName}, '%')</if>
</where> </where>
</select> </select>
<select id="selectSysSalesOrderChildById" parameterType="Long" resultMap="SysSalesOrderChildResult"> <select id="selectSysSalesOrderChildById" parameterType="Long" resultMap="SysSalesOrderChildResult">
<include refid="selectSysSalesOrderChild"/> <include refid="selectSysSalesOrderChild"/>
where id = #{id} where a.id = #{id}
</select> </select>
<select id="selectSysSalesOrderChildByQuoteId" parameterType="String" resultMap="SysSalesOrderChildResult"> <select id="selectSysSalesOrderChildByQuoteId" parameterType="String" resultMap="SysSalesOrderChildResult">
<include refid="selectSysSalesOrderChild"/> <include refid="selectSysSalesOrderChild"/>
where quoteId = #{quoteId} where a.quoteId = #{quoteId}
</select> </select>
<insert id="insertSysSalesOrderChild" parameterType="SysSalesOrderChild" useGeneratedKeys="true" keyProperty="id"> <insert id="insertSysSalesOrderChild" parameterType="SysSalesOrderChild" useGeneratedKeys="true" keyProperty="id">
insert into sys_sales_order_child insert into sys_sales_order_child

Loading…
Cancel
Save