md
This commit is contained in:
parent
59b216b430
commit
54b8aa931c
@ -152,7 +152,34 @@ public class EmisWaybillAjustApplyController extends EmisBaseController
|
|||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
{
|
{
|
||||||
return toAjax(emisWaybillAjustApplyService.deleteEmisWaybillAjustApplyByIds(ids));
|
if(ids!=null && ids.length>0){
|
||||||
|
for(int i=0;i<ids.length;i++){
|
||||||
|
try {
|
||||||
|
long id=ids[i];
|
||||||
|
EmisWaybillAjustApply emisWaybillAjustApply = emisWaybillAjustApplyService.selectEmisWaybillAjustApplyById(id);
|
||||||
|
if(emisWaybillAjustApply==null){
|
||||||
|
return AjaxResult.error("申请不存在");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!"0".equals(emisWaybillAjustApply.getBlCenterConfirmed() )
|
||||||
|
|| !"0".equals(emisWaybillAjustApply.getBlDestConfirmed() )
|
||||||
|
){
|
||||||
|
return AjaxResult.error("该已有操作,不允许删除");
|
||||||
|
}
|
||||||
|
|
||||||
|
emisWaybillAjustApplyService.deleteEmisWaybillAjustApplyById(id);
|
||||||
|
}catch (Exception ex){
|
||||||
|
ex.printStackTrace();
|
||||||
|
// 返回子定义异常
|
||||||
|
if(ex instanceof EmisBizError){
|
||||||
|
return AjaxResult.error(ex.getMessage(),((EmisBizError)ex).getErrorCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
return AjaxResult.error("审核异常,联系客服");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return AjaxResult.success("操作成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1064,15 +1064,6 @@
|
|||||||
UNION
|
UNION
|
||||||
SELECT #{params.privSiteCode} FROM dual
|
SELECT #{params.privSiteCode} FROM dual
|
||||||
)
|
)
|
||||||
or
|
|
||||||
a.sign_site_code in (
|
|
||||||
SELECT t1.site_code FROM (
|
|
||||||
SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
|
|
||||||
#{params.privSiteCode} ) pd
|
|
||||||
WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
|
|
||||||
UNION
|
|
||||||
SELECT #{params.privSiteCode} FROM dual
|
|
||||||
)
|
|
||||||
or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode})
|
or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode})
|
||||||
or a.salesmen=#{params.privEmpName}
|
or a.salesmen=#{params.privEmpName}
|
||||||
or a.payee=#{params.privEmpName}
|
or a.payee=#{params.privEmpName}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user