fix: 南靖初始化

njxyy
chenhc 5 months ago
parent 1e7c2696f5
commit 17b7bc054c

@ -759,7 +759,8 @@ public class NjxyyClient extends CommonHttpClient {
public BaseResponse getInvResult(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { public BaseResponse getInvResult(UdiwmsInvProductsRequest udiwmsInvProductsRequest) {
udiwmsInvProductsRequest.setDatabaseProductName(getDataSourceType()); udiwmsInvProductsRequest.setDatabaseProductName(getDataSourceType());
if (udiwmsInvProductsRequest != null && udiwmsInvProductsRequest.getStartDate() != null && udiwmsInvProductsRequest.getEndDate() != null){ if (udiwmsInvProductsRequest != null && udiwmsInvProductsRequest.getStartDate() != null && udiwmsInvProductsRequest.getEndDate() != null){
udiwmsInvProductsRequest.setStartDate(DateUtil.formatDate(DateUtil.parseDate(udiwmsInvProductsRequest.getStartDate()), "yyyyMMdd"));
udiwmsInvProductsRequest.setEndDate(DateUtil.formatDate(DateUtil.parseDate(udiwmsInvProductsRequest.getEndDate()), "yyyyMMdd"));
}else { }else {
return ResultVOUtils.error(500,"缺少开始结束日期必要参数"); return ResultVOUtils.error(500,"缺少开始结束日期必要参数");
} }

@ -79,4 +79,7 @@ public class A005 {
@TableField(value = "REMARK") @TableField(value = "REMARK")
private String remark; private String remark;
@TableField(value = "REMARK1")
private String remark1;
} }

@ -25,41 +25,42 @@
<result column="CORPID" jdbcType="VARCHAR" property="corpid" /> <result column="CORPID" jdbcType="VARCHAR" property="corpid" />
<result column="CORPNAME" jdbcType="VARCHAR" property="corpname" /> <result column="CORPNAME" jdbcType="VARCHAR" property="corpname" />
<result column="REMARK" jdbcType="TIMESTAMP" property="remark" /> <result column="REMARK" jdbcType="TIMESTAMP" property="remark" />
<result column="REMARK1" jdbcType="VARCHAR" property="remark" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!--@mbg.generated--> <!--@mbg.generated-->
CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE, CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE,
YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE, YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE,
INVCODE, INVNAME, CORPID, CORPNAME, REMARK INVCODE, INVNAME, CORPID, CORPNAME, REMARK, REMARK1
</sql> </sql>
<select id="filterList" resultType="com.glxp.mipsdl.entity.njxyy.A005"> <select id="filterList" resultType="com.glxp.mipsdl.entity.njxyy.A005">
SELECT CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE, SELECT CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE,
YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE, YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE,
INVCODE, INVNAME, CORPID, CORPNAME, REMARK INVCODE, INVNAME, CORPID, CORPNAME, REMARK, REMARK1
FROM a005 FROM a005
<where> <where>
<if test="startDate != null and databaseProductName == 'Oracle'"> <if test="startDate != null and databaseProductName == 'Oracle'">
<![CDATA[ <![CDATA[
and TRUNC(REMARK) >= TO_DATE(#{startDate} , 'YYYY-MM-DD') and REMARK1 >= #{startDate}
]]> ]]>
</if> </if>
<if test="endDate != null and databaseProductName == 'Oracle'"> <if test="endDate != null and databaseProductName == 'Oracle'">
<![CDATA[ <![CDATA[
and TRUNC(REMARK) <= TO_DATE(#{endDate} , 'YYYY-MM-DD') and REMARK1 <= #{endDate}
]]> ]]>
</if> </if>
<if test="startDate != null and databaseProductName == 'MySql'"> <if test="startDate != null and databaseProductName == 'MySQL'">
<![CDATA[ <![CDATA[
and REMARK >= (#{startDate} and REMARK1 >= #{startDate}
]]> ]]>
</if> </if>
<if test="endDate != null and databaseProductName == 'MySql'"> <if test="endDate != null and databaseProductName == 'MySQL'">
<![CDATA[ <![CDATA[
and REMARK <= #{endDate} and REMARK1 <= #{endDate}
]]> ]]>
</if> </if>

Loading…
Cancel
Save