| | |
| | | import com.consum.base.core.CodeGeneratorService; |
| | | import com.consum.base.pojo.BaseWarehouseParam; |
| | | import com.consum.base.util.IdUtil; |
| | | import com.consum.model.po.BaseWarehouse; |
| | | import com.consum.model.po.FinSysTenant; |
| | | import com.consum.model.po.FinSysTenantDepartment; |
| | | import com.consum.model.po.FinSysTenantUser; |
| | | import com.consum.model.po.*; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.jdbc.service.BaseServiceImpl; |
| | |
| | | private FinSysTenantDepartmentServiceImpl departmentService; |
| | | @Autowired |
| | | private FinSysTenantUserServiceImpl userService; |
| | | @Autowired |
| | | private SDictDataServiceImpl sDictDataService; |
| | | |
| | | /** |
| | | * @Description 新增 |
| | |
| | | // baseWarehouse.setParentAgencyId(finSysTenant.getParentId()); |
| | | // baseWarehouse.setAgencyName(finSysTenant.getName()); |
| | | // } |
| | | //根据CLASSIFICATION_CODE查询CLASSIFICATION_NAME |
| | | S_dict_data s_dict_data = this.sDictDataService.get(new S_dict_data(Long.valueOf(param.getClassificationCode()))); |
| | | if (s_dict_data != null) { |
| | | baseWarehouse.setClassificationName(s_dict_data.getDict_label()); |
| | | } |
| | | baseWarehouse.setIsDefault(Constants.IS_DEFAULT_YES); |
| | | |
| | | return this.insert(baseWarehouse); |
| | |
| | | * @Date 2023/10/26 |
| | | */ |
| | | public int updateBaseWarehouse(BaseWarehouse baseWarehouse) { |
| | | S_dict_data s_dict_data = this.sDictDataService.get(new S_dict_data(Long.valueOf(baseWarehouse.getClassificationCode()))); |
| | | if (s_dict_data != null) { |
| | | baseWarehouse.setClassificationName(s_dict_data.getDict_label()); |
| | | } |
| | | return this.update(baseWarehouse); |
| | | } |
| | | |