第三方仓库,第三方业务单据类型修改

master
anthonyywj2 3 years ago
parent c2c7d8ae49
commit 8d776d133e

@ -157,7 +157,8 @@ public class BussinessOriginTypeController {
} }
if (basicThirdSysBusApiEntities.size() >= 100) { if (basicThirdSysBusApiEntities.size() >= 100) {
page++; page++;
} } else
break;
} else { } else {
break; break;
} }

@ -80,6 +80,8 @@ public class ErpBasicClient {
String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/getOrderType"; String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/getOrderType";
UdiwmsBusTypeRequest udiwmsBusTypeRequest = new UdiwmsBusTypeRequest(); UdiwmsBusTypeRequest udiwmsBusTypeRequest = new UdiwmsBusTypeRequest();
udiwmsBusTypeRequest.setThirdSys(filterBasicThirdSysDetailRequest.getThirdSysFk()); udiwmsBusTypeRequest.setThirdSys(filterBasicThirdSysDetailRequest.getThirdSysFk());
udiwmsBusTypeRequest.setPage(filterBasicThirdSysDetailRequest.getPage());
udiwmsBusTypeRequest.setLimit(filterBasicThirdSysDetailRequest.getLimit());
String response = HttpClient.uCloudPost(url, udiwmsBusTypeRequest, basicThirdSysEntity); String response = HttpClient.uCloudPost(url, udiwmsBusTypeRequest, basicThirdSysEntity);
log.info(response); log.info(response);
try { try {

@ -15,4 +15,5 @@ public class BussinessOriginTypeFilterRequest extends ListPageRequest {
private String localAction; private String localAction;
private String lastUpdateTime; private String lastUpdateTime;
private Integer corpType; private Integer corpType;
private String key;
} }

@ -19,6 +19,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@ -127,6 +128,7 @@ public class ThrInvWarehouseServiceImpl implements ThrInvWarehouseService {
thrInvWarehouseEntity.setThirdSysFk(thirdSysFk); thrInvWarehouseEntity.setThirdSysFk(thirdSysFk);
thrInvWarehouseEntity.setAdvanceType(false); //默认是仓库 thrInvWarehouseEntity.setAdvanceType(false); //默认是仓库
thrInvWarehouseEntity.setStatus(1);//默认启用 thrInvWarehouseEntity.setStatus(1);//默认启用
thrInvWarehouseEntity.setUpdateTime(new Date());
list.add(thrInvWarehouseEntity); list.add(thrInvWarehouseEntity);
} }
//插入数据 //插入数据

@ -59,11 +59,16 @@
<where> <where>
basic_third_sys_detail.key = 'busTypeQueryUrl' and basic_third_sys_detail.enabled=1 basic_third_sys_detail.key = 'busTypeQueryUrl' and basic_third_sys_detail.enabled=1
<if test="name != ''and name != null"> <if test="name != ''and name != null">
AND name LIKE concat(#{name},'%') AND basic_bustype_origin.name LIKE concat(#{name},'%')
</if> </if>
<if test="action != ''and action != null"> <if test="action != ''and action != null">
AND action LIKE concat(#{action},'%') AND basic_bustype_origin.action LIKE concat(#{action},'%')
</if> </if>
<if test="key != ''and key != null">
AND( (basic_bustype_origin.name LIKE concat(#{key},'%') )or( basic_bustype_origin.action LIKE
concat(#{key},'%')) )
</if>
</where> </where>
</select> </select>
@ -79,7 +84,8 @@
#{enable}, #{enable},
#{remark}, #{remark},
#{thirdSys}, #{thirdSys},
#{thirdSysName},#{inoutType} #{thirdSysName},
#{inoutType}
) )
</insert> </insert>

@ -26,8 +26,8 @@
AND isDefault = #{isDefault} AND isDefault = #{isDefault}
</if> </if>
<if test="key != null"> <if test="key != null">
and code like concat('%', #{key}, '%') and (code like concat('%', #{key}, '%')
or `name` like concat('%', #{key}, '%') or `name` like concat('%', #{key}, '%'))
</if> </if>
<if test="lastUpdateTime != null and lastUpdateTime != ''"> <if test="lastUpdateTime != null and lastUpdateTime != ''">
<![CDATA[ <![CDATA[
@ -70,20 +70,28 @@
AND isDefault = #{isDefault} AND isDefault = #{isDefault}
</if> </if>
<if test="thirdSysFk != null"> <if test="thirdSysFk != null">
AND thirdSysFk = #{thirdSysFk} AND thirdSysFk = #{thirdSysFk}
</if> </if>
</where> </where>
</select> </select>
<insert id="insertThrInvWarehouse" keyProperty="id" <insert id="insertThrInvWarehouse" keyProperty="id"
parameterType="com.glxp.api.admin.entity.thrsys.ThrInvWarehouseEntity"> parameterType="com.glxp.api.admin.entity.thrsys.ThrInvWarehouseEntity">
replace INTO thr_inv_warehouse replace
INTO thr_inv_warehouse
(pid, code, name, advanceType, isDefault, (pid, code, name, advanceType, isDefault,
status, updateTime, remark, thirdSysFk) status, updateTime, remark, thirdSysFk)
values (#{pid}, #{code}, values (
#{name}, #{advanceType}, #{isDefault}, #{pid},
#{status}, #{updateTime}, #{code},
#{remark}, #{thirdSysFk}) #{name},
#{advanceType},
#{isDefault},
#{status},
#{updateTime},
#{remark},
#{thirdSysFk}
)
</insert> </insert>
<insert id="insertThrInvWarehouses" parameterType="java.util.List"> <insert id="insertThrInvWarehouses" parameterType="java.util.List">
@ -163,21 +171,21 @@
</select> </select>
<insert id="insertInvWarehouses"> <insert id="insertInvWarehouses">
replace into thr_inv_warehouse (pid, code, name, advanceType, isDefault, status, updateTime, remark, level, replace into thr_inv_warehouse (pid, code, name, advanceType, isDefault, status, updateTime, remark, level,
pcode, pcode,
thirdSysFk) thirdSysFk)
values values
<foreach collection="thrInvWarehouseEntitys" index="index" item="item" separator=","> <foreach collection="thrInvWarehouseEntitys" index="index" item="item" separator=",">
(#{item.pid}, (#{item.pid},
#{item.code}, #{item.code},
#{item.name}, #{item.name},
#{item.advanceType}, #{item.advanceType},
#{item.isDefault}, #{item.isDefault},
#{item.status}, #{item.status},
#{item.updateTime}, #{item.updateTime},
#{item.remark}, #{item.remark},
#{item.level}, #{item.level},
#{item.pcode}, #{item.pcode},
#{item.thirdSysFk}) #{item.thirdSysFk})
</foreach> </foreach>
</insert> </insert>
</mapper> </mapper>
Loading…
Cancel
Save