|
|
|
@ -126,7 +126,7 @@ public class BasicCorpController extends BaseController {
|
|
|
|
|
if (basicUnitMaintainSaveRequest.getCorpType() == 1) {
|
|
|
|
|
basicUnitMaintainEntity.setOutType(ConstantStatus.CORP_SICK_CUS);
|
|
|
|
|
} else if (basicUnitMaintainSaveRequest.getCorpType() == 2) {
|
|
|
|
|
basicUnitMaintainEntity.setOutType(ConstantStatus.CORP_SICK_SICK);
|
|
|
|
|
basicUnitMaintainEntity.setOutType(0);
|
|
|
|
|
} else {
|
|
|
|
|
basicUnitMaintainEntity.setOutType(ConstantStatus.CORP_SICK_INN);
|
|
|
|
|
}
|
|
|
|
@ -158,7 +158,14 @@ public class BasicCorpController extends BaseController {
|
|
|
|
|
return ResultVOUtils.success("修改成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @AuthRuleAnnotation("")
|
|
|
|
|
/**
|
|
|
|
|
* 手持终端客户端下载
|
|
|
|
|
*
|
|
|
|
|
* @param basicUnitMaintainFilterRequest
|
|
|
|
|
* @param bindingResult
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/unit/download")
|
|
|
|
|
public BaseResponse downloadBasicUnit(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
@ -167,10 +174,11 @@ public class BasicCorpController extends BaseController {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
List<Integer> corpTypeLists = new ArrayList<>();
|
|
|
|
|
corpTypeLists.add(1);
|
|
|
|
|
// corpTypeLists.add(1);
|
|
|
|
|
corpTypeLists.add(2);
|
|
|
|
|
corpTypeLists.add(4);
|
|
|
|
|
basicUnitMaintainFilterRequest.setCorpTypeLists(corpTypeLists);
|
|
|
|
|
basicUnitMaintainFilterRequest.setOutType(0);
|
|
|
|
|
// basicUnitMaintainFilterRequest.setOutType(0);
|
|
|
|
|
List<BasicCorpEntity> basicUnitMaintainEntities;
|
|
|
|
|
basicUnitMaintainEntities = basicUnitMaintainService.filterList(basicUnitMaintainFilterRequest);
|
|
|
|
|
PageInfo<BasicCorpEntity> pageInfo;
|
|
|
|
@ -355,7 +363,7 @@ public class BasicCorpController extends BaseController {
|
|
|
|
|
basicDataRequest.setDeleteRequest(deleteRequest);
|
|
|
|
|
basicDataRequest.setKey(SyncDelType.BASIC_CORP_MAINTAIN);
|
|
|
|
|
Long userId = getUserId();
|
|
|
|
|
spGetHttpClient.deleteBasicData(basicDataRequest,userId+"");
|
|
|
|
|
spGetHttpClient.deleteBasicData(basicDataRequest, userId + "");
|
|
|
|
|
return ResultVOUtils.success("删除成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|