| | |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.AbstractServiceCmdListener; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.allocationStorehouse.AllocationStorehouseDto; |
| | |
| | | * |
| | | */ |
| | | @Java110Cmd(serviceCode = "resourceStore.saveAllocationStorehouse") |
| | | public class SaveAllocationStorehouseCmd extends AbstractServiceCmdListener { |
| | | public class SaveAllocationStorehouseCmd extends Cmd { |
| | | |
| | | @Autowired |
| | | private IResourceStoreInnerServiceSMO resourceStoreInnerServiceSMOImpl; |
| | |
| | | userDto.setUserId(reqJson.getString("userId")); |
| | | List<UserDto> userDtos = userV1InnerServiceSMOImpl.queryUsers(userDto); |
| | | |
| | | if (userDtos != null && userDtos.size() > 0) { |
| | | reqJson.put("userName", userDtos.get(0).getUserName()); |
| | | } |
| | | Assert.listOnlyOne(userDtos, "用户不存在"); |
| | | reqJson.put("userName", userDtos.get(0).getName()); |
| | | |
| | | |
| | | //封装调拨对象 |
| | | AllocationStorehouseApplyPo allocationStorehouseApplyPo = covertAllocationStorehouseApply(reqJson); |