rev:优化BUG
This commit is contained in:
Binary file not shown.
@@ -103,9 +103,11 @@ public class SemirealrawmaterialServiceImpl implements SemirealrawmaterialServic
|
||||
String nickName = SecurityUtils.getCurrentNickName();
|
||||
|
||||
String relation_id = param.getString("relation_id");
|
||||
String raw_material_id = param.getString("raw_material_id");
|
||||
String raw_material_id = param.getString("material_id");
|
||||
String rate_qty = param.getString("rate_qty");
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("raw_material_id", raw_material_id);
|
||||
map.put("rate_qty", rate_qty);
|
||||
map.put("update_optid", currentUserId);
|
||||
map.put("update_optname", nickName);
|
||||
map.put("update_time", DateUtil.now());
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
mb.material_code,
|
||||
mb.material_name,
|
||||
class.class_name,
|
||||
po.total_qty - po.instor_qty AS need_qty
|
||||
po.qty - po.instor_qty AS need_qty
|
||||
FROM
|
||||
pcs_if_purchaseorder po
|
||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = po.material_id
|
||||
@@ -28,38 +28,40 @@
|
||||
and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search})
|
||||
</if>
|
||||
</where>
|
||||
order by po.id desc
|
||||
</select>
|
||||
|
||||
<select id="queryAll" resultType="java.util.Map">
|
||||
SELECT
|
||||
po.*,
|
||||
mb.material_code,
|
||||
mb.material_name,
|
||||
class.class_name
|
||||
FROM
|
||||
pcs_if_purchaseorder po
|
||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = po.material_id
|
||||
LEFT JOIN md_pb_classstandard class ON class.class_id = mb.material_type_id
|
||||
<where>
|
||||
po.is_delete = '0'
|
||||
<if test="query.status == '0'.toString()">
|
||||
and po.status = '10'
|
||||
</if>
|
||||
<if test="query.status == '1'.toString()">
|
||||
and po.status > '10'
|
||||
</if>
|
||||
<if test="query.start_time != null">
|
||||
and po.ask_time >= #{query.start_time}
|
||||
</if>
|
||||
<if test="query.end_time != null">
|
||||
and #{query.end_time} >= po.ask_time
|
||||
</if>
|
||||
<if test="query.bill_code != null and query.bill_code != ''">
|
||||
and mst.bill_code = #{query.bill_code}
|
||||
</if>
|
||||
<if test="query.material_search != null and query.material_search != ''">
|
||||
and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search})
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
SELECT
|
||||
po.*,
|
||||
mb.material_code,
|
||||
mb.material_name,
|
||||
class.class_name
|
||||
FROM
|
||||
pcs_if_purchaseorder po
|
||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = po.material_id
|
||||
LEFT JOIN md_pb_classstandard class ON class.class_id = mb.material_type_id
|
||||
<where>
|
||||
po.is_delete = '0'
|
||||
<if test="query.status == '0'.toString()">
|
||||
and po.status = '10'
|
||||
</if>
|
||||
<if test="query.status == '1'.toString()">
|
||||
and po.status > '10'
|
||||
</if>
|
||||
<if test="query.start_time != null">
|
||||
and po.ask_time >= #{query.start_time}
|
||||
</if>
|
||||
<if test="query.end_time != null">
|
||||
and #{query.end_time} >= po.ask_time
|
||||
</if>
|
||||
<if test="query.bill_code != null and query.bill_code != ''">
|
||||
and mst.bill_code = #{query.bill_code}
|
||||
</if>
|
||||
<if test="query.material_search != null and query.material_search != ''">
|
||||
and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search})
|
||||
</if>
|
||||
</where>
|
||||
order by po.id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -59,6 +59,11 @@ public class PdmBiDevice implements Serializable {
|
||||
*/
|
||||
private String material_id;
|
||||
|
||||
/**
|
||||
* 物料系列
|
||||
*/
|
||||
private String product_series;
|
||||
|
||||
/**
|
||||
* 工单编号
|
||||
*/
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
<if test="query.workprocedure_code != null and query.workprocedure_code != ''">
|
||||
and pro.workprocedure_code = #{query.workprocedure_code}
|
||||
</if>
|
||||
<if test="query.workprocedure_codes != null and query.workprocedure_codes != ''">
|
||||
and pro.workprocedure_code IN #{query.workprocedure_codes}
|
||||
</if>
|
||||
<if test="query.product_area != null and query.product_area != ''">
|
||||
and ShiftOrder.product_area = #{query.product_area}
|
||||
</if>
|
||||
|
||||
@@ -22,6 +22,7 @@ public class WorkorderQuery extends BaseQuery<PdmProduceWorkorder> {
|
||||
private String material;
|
||||
private String order_status;
|
||||
private String workprocedure_code;
|
||||
private String workprocedure_codes;
|
||||
private String sale_id;
|
||||
private String shift_type_scode;
|
||||
private String product_series;
|
||||
|
||||
@@ -23,11 +23,11 @@ spring:
|
||||
db-type: com.alibaba.druid.pool.DruidDataSource
|
||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||
# url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.46.5}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_test}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
|
||||
url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_xc}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
|
||||
# url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:zjhl_mes}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
|
||||
# url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_xc}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
|
||||
url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:zjhl_mes}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: ${DB_USER:root}
|
||||
password: ${DB_PWD:Root.123456}
|
||||
# password: ${DB_PWD:root}
|
||||
# password: ${DB_PWD:Root.123456}
|
||||
password: ${DB_PWD:root}
|
||||
|
||||
# 初始连接数
|
||||
initial-size: 5
|
||||
|
||||
Reference in New Issue
Block a user