fix: 南靖初始化

njxyy
chenhc 5 months ago
parent 1e7c2696f5
commit 17b7bc054c

@ -759,7 +759,8 @@ public class NjxyyClient extends CommonHttpClient {
public BaseResponse getInvResult(UdiwmsInvProductsRequest udiwmsInvProductsRequest) {
udiwmsInvProductsRequest.setDatabaseProductName(getDataSourceType());
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 {
return ResultVOUtils.error(500,"缺少开始结束日期必要参数");
}

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

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

Loading…
Cancel
Save