pda,平板修改

dev_no_inv
yewj 9 months ago
parent b7ff531f30
commit 673532e300

@ -212,11 +212,15 @@ public class LoginController extends BaseController {
loginResponse.setEmployeeName(authAdmin.getEmployeeName()); loginResponse.setEmployeeName(authAdmin.getEmployeeName());
loginResponse.setToken(token); loginResponse.setToken(token);
loginResponse.setDept(authAdmin.getLocDeptCode()); loginResponse.setDept(authAdmin.getLocDeptCode());
loginResponse.setInvCode(authAdmin.getLocInvCode());
DeptEntity deptEntity = deptService.selectByCode(authAdmin.getLocDeptCode()); DeptEntity deptEntity = deptService.selectByCode(authAdmin.getLocDeptCode());
if (deptEntity != null) { if (deptEntity != null) {
loginResponse.setDeptName(deptEntity.getName()); loginResponse.setDeptName(deptEntity.getName());
} }
InvWarehouseEntity invWarehouseEntity = invWarehouseService.findByInvSubByCode(authAdmin.getLocInvCode());
if (invWarehouseEntity != null) {
loginResponse.setInvName(invWarehouseEntity.getName());
}
List<SysMenu> sysMenus = menuService.selectMenuList(authAdmin.getId()); List<SysMenu> sysMenus = menuService.selectMenuList(authAdmin.getId());
// .stream().filter(item -> item.getMenuName().equals("单据管理")).findFirst().get().getChildren(). // .stream().filter(item -> item.getMenuName().equals("单据管理")).findFirst().get().getChildren().
List<PdaMainItemEntity> menus = sysMenus.stream().filter( List<PdaMainItemEntity> menus = sysMenus.stream().filter(

@ -328,8 +328,20 @@ public class IoOrderController extends BaseController {
@PostMapping("warehouse/inout/saveOrderWeb") @PostMapping("warehouse/inout/saveOrderWeb")
@Log(title = "单据管理", businessType = BusinessType.UPDATE) @Log(title = "单据管理", businessType = BusinessType.UPDATE)
public BaseResponse saveOrderWeb(@RequestBody AddOrderRequest addOrderRequest) { public BaseResponse saveOrderWeb(@RequestBody AddOrderRequest addOrderRequest) {
System.out.println(addOrderRequest.toString());
IoOrderEntity orderEntity = new IoOrderEntity(); IoOrderEntity orderEntity = new IoOrderEntity();
if (addOrderRequest.getWorkPlaceCode() != null) {
if (IntUtil.value(addOrderRequest.getInoutType()) == 2) {
addOrderRequest.setAction(ConstantType.SPLIT_RETURN);
} else {
addOrderRequest.setAction(ConstantType.SPLIT_OUT);
}
addOrderRequest.setFromCorp(ConstantType.SPLIT_CORP);
AuthAdmin authAdmin = getUser();
addOrderRequest.setDeptCode(authAdmin.getLocDeptCode());
addOrderRequest.setInvCode(authAdmin.getLocInvCode());
}
if (StrUtil.isEmpty(addOrderRequest.getAction())) if (StrUtil.isEmpty(addOrderRequest.getAction()))
return ResultVOUtils.error(500, "单据类型不能为空"); return ResultVOUtils.error(500, "单据类型不能为空");
@ -338,6 +350,8 @@ public class IoOrderController extends BaseController {
if (addOrderRequest.getOrderType() != null) { if (addOrderRequest.getOrderType() != null) {
orderEntity.setOrderType(addOrderRequest.getOrderType()); orderEntity.setOrderType(addOrderRequest.getOrderType());
} }
orderEntity.setFromCorp(ioAddInoutService.updateCorp(bussinessTypeEntity, addOrderRequest.getFromCorp(), addOrderRequest.getSickerAdNum())); orderEntity.setFromCorp(ioAddInoutService.updateCorp(bussinessTypeEntity, addOrderRequest.getFromCorp(), addOrderRequest.getSickerAdNum()));
orderEntity.setAction(addOrderRequest.getAction()); orderEntity.setAction(addOrderRequest.getAction());
orderEntity.setMainAction(bussinessTypeEntity.getMainAction()); orderEntity.setMainAction(bussinessTypeEntity.getMainAction());

@ -56,4 +56,5 @@ public class AddOrderRequest {
*/ */
private String splitBusType; private String splitBusType;
private String splitType; private String splitType;
private Integer inoutType;
} }

@ -15,6 +15,9 @@ public class LoginResponse {
private String dept; private String dept;
private String deptName; private String deptName;
private String invCode;
private String invName;
private String employeeName; private String employeeName;
private String userName; private String userName;
/** /**

@ -283,7 +283,7 @@ public class IoOrderResponse {
private String splitBusTypeName; private String splitBusTypeName;
private Integer productType;
/** /**
* *
*/ */

@ -4,9 +4,9 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver driver-class-name: com.p6spy.engine.spy.P6SpyDriver
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_ywj?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:p6spy:mysql://dm.xmglxp.com:33066/udi_wms_ywj?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: Glxp@6066
hikari: hikari:
connection-timeout: 60000 connection-timeout: 60000
maximum-pool-size: 20 maximum-pool-size: 20

@ -31,7 +31,9 @@
ico.uploadStatus, ico.uploadStatus,
ico.uploadError, ico.uploadError,
ico.errorMsg, ico.errorMsg,
row_number() over ( order by case when ico.orderTime is null then ico.createTime else ico.orderTime end desc ) as orderSequence row_number() over ( order by case
when ico.orderTime is null then ico.createTime
else ico.orderTime end desc ) as orderSequence
FROM io_collect_order ico FROM io_collect_order ico
left join sys_workplace_document on ico.busType = sys_workplace_document.documentTypeCode left join sys_workplace_document on ico.busType = sys_workplace_document.documentTypeCode
left join thr_bustype_origin on sys_workplace_document.documentTypeCode = thr_bustype_origin.action left join thr_bustype_origin on sys_workplace_document.documentTypeCode = thr_bustype_origin.action
@ -49,7 +51,7 @@
</if> </if>
<if test="fromCorp != '' and fromCorp != null"> <if test="fromCorp != '' and fromCorp != null">
AND ( fromCorp LIKE concat('%', #{fromCorp}, '%') or fromCorpName LIKE concat('%', #{fromCorp}, '%') ) AND (fromCorp LIKE concat('%', #{fromCorp}, '%') or fromCorpName LIKE concat('%', #{fromCorp}, '%'))
</if> </if>
<if test="fromType != '' and fromType != null"> <if test="fromType != '' and fromType != null">
AND fromType LIKE concat('%', #{fromType}, '%') AND fromType LIKE concat('%', #{fromType}, '%')
@ -65,7 +67,8 @@
</if> </if>
<if test="excludeWorkCode != null and excludeWorkCode != ''"> <if test="excludeWorkCode != null and excludeWorkCode != ''">
AND ico.workPlaceCode is not null and ico.workPlaceCode not in (#{excludeWorkCode}) AND ico.workPlaceCode is not null
and ico.workPlaceCode not in (#{excludeWorkCode})
</if> </if>
<if test="chargeUser != null"> <if test="chargeUser != null">
@ -76,10 +79,10 @@
</if> </if>
<if test="unionKey != null"> <if test="unionKey != null">
AND ( AND (
ico.billNo like concat( #{unionKey}) ico.billNo like concat(#{unionKey})
or ico.fromCorp like concat(#{unionKey}) or ico.fromCorp like concat(#{unionKey})
or ico.fromCorpName like concat(#{unionKey}) or ico.fromCorpName like concat(#{unionKey})
or ico.backupOrderRemark1 like concat( #{unionKey}) or ico.backupOrderRemark1 like concat(#{unionKey})
or ico.backupOrderRemark2 like concat(#{unionKey}) or ico.backupOrderRemark2 like concat(#{unionKey})
or ico.backupOrderRemark3 like concat(#{unionKey}) or ico.backupOrderRemark3 like concat(#{unionKey})
or ico.backupOrderRemark4 like concat(#{unionKey}) or ico.backupOrderRemark4 like concat(#{unionKey})
@ -107,10 +110,10 @@
</foreach> </foreach>
</if> </if>
<if test="invAlert != null and invAlert != 1"> <if test="invAlert != null and invAlert != 1">
and ico.invAlert =#{invAlert} and ico.invAlert = #{invAlert}
</if> </if>
<if test="invAlert == 1"> <if test="invAlert == 1">
and ico.invAlert in (0,1) and ico.invAlert in (0, 1)
</if> </if>
<if test="invAlerts != null and invAlerts.size() > 0"> <if test="invAlerts != null and invAlerts.size() > 0">
and ico.invAlert in and ico.invAlert in
@ -136,19 +139,18 @@
<if test="fromCorpName != '' and fromCorpName != null"> <if test="fromCorpName != '' and fromCorpName != null">
AND ico.fromCorpName LIKE concat('%', #{fromCorpName}, '%') AND ico.fromCorpName LIKE concat('%', #{fromCorpName}, '%')
</if> </if>
<if test="startTime != null"> <if test="startTime != null and startTime != ''">
<![CDATA[ <![CDATA[
and ico.billTime >= DATE_FORMAT(#{startTime}, '%Y-%m-%d %H:%i:%S') and ico.billTime >= DATE_FORMAT(#{startTime}, '%Y-%m-%d %H:%i:%S')
]]> ]]>
</if> </if>
<if test="endTime != null"> <if test="endTime != null and endTime != ''">
<![CDATA[ <![CDATA[
and ico.billTime <= DATE_FORMAT(#{endTime}, '%Y-%m-%d %H:%i:%S') and ico.billTime <= DATE_FORMAT(#{endTime}, '%Y-%m-%d %H:%i:%S')
]]> ]]>
</if> </if>
</where> </where>
GROUP BY GROUP BY ico.billNo
ico.billNo
order by case when ico.orderTime is null then ico.createTime else ico.orderTime end desc order by case when ico.orderTime is null then ico.createTime else ico.orderTime end desc
</select> </select>
@ -178,7 +180,6 @@
TRUNCATE io_collect_order_biz_origin; TRUNCATE io_collect_order_biz_origin;
TRUNCATE io_collect_order_backup; TRUNCATE io_collect_order_backup;
TRUNCATE io_collect_order_biz_backup; TRUNCATE io_collect_order_biz_backup;
</select> </select>
<update id="updateInvAlert" parameterType="map"> <update id="updateInvAlert" parameterType="map">

Loading…
Cancel
Save