@ -187,8 +187,8 @@ public class EntrustmentController {
. in ( ( statuses ! = null ) & & ( statuses . size ( ) > 0 ) , "e.status" , statuses )
. eq ( dataSources ! = null , "e.data_sources" , dataSources )
. like ( StrUtil . isNotBlank ( caseName ) , "c.case_name" , caseName )
. orderByDesc ( statuses ! = null & & statuses . size ( ) > 0 & & statuses . get ( 0 ) = = 9 , "CAST(SUBSTRING(e.accept_no, 1,4) AS UNSIGNED)" , "CAST(SUBSTRING(e.accept_no, 6) AS UNSIGNED)" )
. orderByDesc ( statuses ! = null & & statuses . size ( ) > 0 & & statuses . get ( 0 ) = = 7 , "CAST(SUBSTRING(e.entrustment_no, 4,4) AS UNSIGNED)" , "CAST(SUBSTRING(e.entrustment_no, 9) AS UNSIGNED)" )
. orderByDesc ( statuses ! = null & & statuses . size ( ) > 0 & & statuses . get ( 0 ) = = 9 , "CAST(SUBSTRING(e.accept_no, 1,4) AS UNSIGNED)" , "CAST(SUBSTRING(e.accept_no, 6) AS UNSIGNED)" )
. orderByDesc ( statuses ! = null & & statuses . size ( ) > 0 & & statuses . get ( 0 ) = = 7 , "CAST(SUBSTRING(e.entrustment_no, 4,4) AS UNSIGNED)" , "CAST(SUBSTRING(e.entrustment_no, 9) AS UNSIGNED)" )
) ;
} else {
//-- 当前用户是普通用户, 不是鉴定中心员工
@ -1500,7 +1500,7 @@ public class EntrustmentController {
@SysLog ( "创建鉴定委托书" )
@GetMapping ( "/el" )
// @PreAuthorize("@pms.hasPermission('EntrustmentEdit')")
public String bizGetPDFEntrustmentLetter ( String id , HttpServletRequest theHttpServletRequest , HttpServletResponse httpServletResponse ) {
public String bizGetPDFEntrustmentLetter ( String id , HttpServletRequest theHttpServletRequest , HttpServletResponse httpServletResponse ) {
return entrustmentService . bizGetPDFEntrustmentLetter ( id , theHttpServletRequest , httpServletResponse ) ;
}
@ -2294,7 +2294,7 @@ public class EntrustmentController {
@DeleteMapping ( "del_delivePhoto_base64" )
@ApiOperation ( value = "删除送检人照片" , notes = "删除送检人照片" )
public R delDeliverPhoto ( String id , String fileName ) throws Exception {
public R delDeliverPhoto ( String id , String fileName ) throws Exception {
String path = OSSDirectoryConstants . ACCEPT_DIRECTORY + "/" + id + "/" + "deliverPhoto/" + fileName ;
ossFile . fileDelete ( path ) ;
return R . ok ( "删除成功!" ) ;
@ -2344,7 +2344,7 @@ public class EntrustmentController {
@PutMapping ( "/editRequirement" )
@ApiOperation ( value = "修改鉴定要求" )
public R editRequirement ( @RequestBody Entrustment entrustment ) {
public R editRequirement ( @RequestBody Entrustment entrustment ) {
Entrustment entst = entrustmentService . getById ( entrustment . getId ( ) ) ;
entst . setEntrustRequirement ( entrustment . getEntrustRequirement ( ) ) ;
return entrustmentService . updateById ( entst ) ? R . ok ( "修改成功" ) : R . failed ( "修改失败" ) ;
@ -2353,7 +2353,7 @@ public class EntrustmentController {
@ApiOperation ( "根据委托时间去修改一些时间类型的字段信息,例如 submit_time、check_claim_time、check_time、approve_claim_time、approve_time、" +
"deliver_confirm_time、accept_claim_time、accept_time、create_time以及process_info字段中的time类型的数据" )
@PutMapping ( "/alertTimeFiledInfoByEntrustDate" )
public R alertTimeFiledInfoByEntrustDate ( @RequestBody Entrustment entrustment ) {
public R alertTimeFiledInfoByEntrustDate ( @RequestBody Entrustment entrustment ) {
boolean success = entrustmentService . alertTimeFiledInfoByEntrustDate ( entrustment ) ;
return success ? R . ok ( "修改成功" ) : R . failed ( "修改失败" ) ;
}
@ -2368,4 +2368,13 @@ public class EntrustmentController {
return R . ok ( allowSubmit , "有检材未保存,请先保存检材后在提交!" ) ;
}
}
@ApiOperation ( "通过用户查询对应的委托单位ID,再根据这个委托单位查询出最近一条含有送检人信息的数据" )
@GetMapping ( "/getDelivererList" )
public R getDelivererList ( HttpServletRequest theHttpServletRequest ) {
Principal principal = theHttpServletRequest . getUserPrincipal ( ) ;
DLPUser dlpUser = ( DLPUser ) ( ( OAuth2Authentication ) principal ) . getUserAuthentication ( ) . getPrincipal ( ) ;
return R . ok ( entrustmentService . getDelivererList ( dlpUser ) , "数据查询成功!" ) ;
}
}