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.setToken(token);
loginResponse.setDept(authAdmin.getLocDeptCode());
loginResponse.setInvCode(authAdmin.getLocInvCode());
DeptEntity deptEntity = deptService.selectByCode(authAdmin.getLocDeptCode());
if (deptEntity != null) {
loginResponse.setDeptName(deptEntity.getName());
}
InvWarehouseEntity invWarehouseEntity = invWarehouseService.findByInvSubByCode(authAdmin.getLocInvCode());
if (invWarehouseEntity != null) {
loginResponse.setInvName(invWarehouseEntity.getName());
}
List<SysMenu> sysMenus = menuService.selectMenuList(authAdmin.getId());
// .stream().filter(item -> item.getMenuName().equals("单据管理")).findFirst().get().getChildren().
List<PdaMainItemEntity> menus = sysMenus.stream().filter(

@ -328,8 +328,20 @@ public class IoOrderController extends BaseController {
@PostMapping("warehouse/inout/saveOrderWeb")
@Log(title = "单据管理", businessType = BusinessType.UPDATE)
public BaseResponse saveOrderWeb(@RequestBody AddOrderRequest addOrderRequest) {
System.out.println(addOrderRequest.toString());
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()))
return ResultVOUtils.error(500, "单据类型不能为空");
@ -338,6 +350,8 @@ public class IoOrderController extends BaseController {
if (addOrderRequest.getOrderType() != null) {
orderEntity.setOrderType(addOrderRequest.getOrderType());
}
orderEntity.setFromCorp(ioAddInoutService.updateCorp(bussinessTypeEntity, addOrderRequest.getFromCorp(), addOrderRequest.getSickerAdNum()));
orderEntity.setAction(addOrderRequest.getAction());
orderEntity.setMainAction(bussinessTypeEntity.getMainAction());

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

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

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

@ -4,9 +4,9 @@ server:
spring:
datasource:
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
password: 123456
password: Glxp@6066
hikari:
connection-timeout: 60000
maximum-pool-size: 20

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

Loading…
Cancel
Save