| | |
| | | log.error("单据[orderNo={}]上报erp失败", order.getOrderNo()); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("单据[orderNo={}]上报erp失败", order.getOrderNo()); |
| | | e.printStackTrace(); |
| | | log.error("单据[orderNo={}]上报erp报错", order.getOrderNo()); |
| | | } |
| | | } |
| | | } |
| | |
| | | return SUCCESS; |
| | | } |
| | | List<OrderDetl> orderDetls = orderDetlService.selectByOrderId(order.getId()); |
| | | if (orderDetls.isEmpty()){ |
| | | return SUCCESS; |
| | | } |
| | | // 入库完成上报 |
| | | if (docType.getPakin() == 1) { |
| | | ExdInstockTarget exdInstockTarge = null; |
| | |
| | | exdInstockTarge.setWritor("WMS"); |
| | | exdInstockTarge.setStatus(0); |
| | | exdInstockTargetService.insert(exdInstockTarge); |
| | | } |
| | | if (!orderService.updateSettle(order.getId(), 6L, null)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } |
| | | } |
| | | } else if (docType.getPakout() == 1) { |
| | | // 出库完成上报 |
| | |
| | | exdOutstockTarget.setWritor("WMS"); |
| | | exdOutstockTarget.setStatus(0); |
| | | exdOutstockTargetService.insert(exdOutstockTarget); |
| | | |
| | | } |
| | | if (!orderService.updateSettle(order.getId(), 6L, null)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } |
| | | } |
| | | } |
| | | return SUCCESS; |
| | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * |
| | | */ |
| | | @TableId |
| | | private Long id; |
| | | @TableId(value = "ID", type = IdType.AUTO) |
| | | private String ID; |
| | | |
| | | /** |
| | | * |
| | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * |
| | | */ |
| | | @TableId |
| | | private Long id; |
| | | @TableId(value = "ID", type = IdType.AUTO) |
| | | private String ID; |
| | | |
| | | /** |
| | | * |
| | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * |
| | | */ |
| | | @TableId |
| | | private Long id; |
| | | @TableId(value = "ID", type = IdType.AUTO) |
| | | private String ID; |
| | | |
| | | /** |
| | | * |
| | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * |
| | | */ |
| | | @TableId |
| | | private Long id; |
| | | @TableId(value = "ID", type = IdType.AUTO) |
| | | private String ID; |
| | | |
| | | /** |
| | | * |
| | |
| | | user.setUsername(exdUser.getName()); |
| | | user.setNickname(exdUser.getName()); |
| | | user.setMobile(exdUser.getName()); |
| | | user.setEmail(exdUser.getId()); |
| | | user.setRoleId(2L); |
| | | user.setCreateTime(new Date()); |
| | | user.setStatus(1); |
| | | userService.insert(user); |
| | | }else { |
| | | user.setUsername(exdUser.getName()); |
| | | user.setNickname(exdUser.getName()); |
| | | user.setMobile(exdUser.getName()); |
| | | user.setEmail(exdUser.getId()); |
| | | userService.updateById(user); |
| | | } |
| | | return SUCCESS; |
| | | } |
| | |
| | | <mapper namespace="com.zy.third.mapper.ExdInstockSourceMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.zy.third.entity.ExdInstockSource"> |
| | | <id property="id" column="ID" /> |
| | | <id property="ID" column="ID" /> |
| | | <result property="finterid" column="FInterID" /> |
| | | <result property="fbillno" column="FBillNo" /> |
| | | <result property="ftrantype" column="FTranType" /> |
| | |
| | | <mapper namespace="com.zy.third.mapper.ExdInstockTargetMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.zy.third.entity.ExdInstockTarget"> |
| | | <id property="id" column="ID" /> |
| | | <id property="ID" column="ID" /> |
| | | <result property="finterid" column="FInterID" /> |
| | | <result property="fbillno" column="FBillNo" /> |
| | | <result property="ftrantype" column="FTranType" /> |
| | |
| | | <mapper namespace="com.zy.third.mapper.ExdOutstockSourceMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.zy.third.entity.ExdOutstockSource"> |
| | | <id property="id" column="ID" /> |
| | | <id property="ID" column="ID" /> |
| | | <result property="finterid" column="FInterID" /> |
| | | <result property="fbillno" column="FBillNo" /> |
| | | <result property="ftrantype" column="FTranType" /> |
| | |
| | | <mapper namespace="com.zy.third.mapper.ExdOutstockTargetMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.zy.third.entity.ExdOutstockTarget"> |
| | | <id property="id" column="ID" /> |
| | | <id property="ID" column="ID" /> |
| | | <result property="finterid" column="FInterID" /> |
| | | <result property="fbillno" column="FBillNo" /> |
| | | <result property="ftrantype" column="FTranType" /> |
| | |
| | | ,{field: 'mobile', align: 'center',title: '手机号'} |
| | | // ,{field: 'deptName', align: 'center',title: '所属部门'} |
| | | ,{field: 'roleName', align: 'center',title: '角色'} |
| | | ,{field: 'email', align: 'center',title: '邮箱'} |
| | | ,{field: 'email', align: 'center',title: 'ERP中用户id'} |
| | | // ,{field: 'sex$', align: 'center',title: '性别'} |
| | | ,{field: 'createTime$', align: 'center',title: '注册时间', hide: true} |
| | | ,{field: 'status$', align: 'center',title: '状态', templet: '#statusTpl', width: 120, unresize: true} |