|
|
@@ -134,31 +134,33 @@ public class AsyncUtils {
|
|
|
public void updateListExamineName(Integer type, String depId, String roleType) {
|
|
|
String names="";
|
|
|
if (type==1){
|
|
|
- names=getNames(depId, roleType);
|
|
|
+ names=getNames(type,depId, roleType);
|
|
|
tOrderNewMapper.updateExamineName(ProcessStatus.YPYXGLY.getCode(),depId,null,names);
|
|
|
newOrderChangeMapper.updateExamineName(OrderChangeProcess.YXGLY.getCode(),depId,null,names);
|
|
|
tOrderInvoiceMapper.updateExamineName(1,depId,null,names);
|
|
|
}else if (type==2){
|
|
|
tOrderInvoiceMapper.updateListExamineName(type,depId,roleType);
|
|
|
}else if (type==3){
|
|
|
- names=getNames(depId, roleType);
|
|
|
+ names=getNames(type,depId, roleType);
|
|
|
newOrderChangeMapper.updateExamineName(OrderChangeProcess.CWZJ.getCode(),depId,null,names);
|
|
|
}else if (type==4){
|
|
|
- names=getNames(depId, roleType);
|
|
|
+ names=getNames(type,depId, roleType);
|
|
|
tOrderNewMapper.updateExamineName(ProcessStatus.YPZXSGLY.getCode(),depId,null,names);
|
|
|
newOrderChangeMapper.updateExamineName(OrderChangeProcess.JSZJ.getCode(),depId,null,names);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private String getNames(String depId, String roleType) {
|
|
|
+ private String getNames(Integer type,String depId, String roleType) {
|
|
|
StringBuffer str=new StringBuffer();
|
|
|
List<Admin> admins = adminMapper.selectAdminByRoleType(roleType);
|
|
|
for (Admin admin : admins) {
|
|
|
- if (admin.getDepartmentId().equals(depId)) {
|
|
|
+ if (type==1&&admin.getDepartmentId().equals(depId)){
|
|
|
+ str = str.append(admin.getName()).append(",");
|
|
|
+ }else if(type!=1){
|
|
|
str = str.append(admin.getName()).append(",");
|
|
|
}
|
|
|
}
|
|
|
if (str.length()>1)return str.substring(0,str.length()-1);
|
|
|
- else return "";
|
|
|
+ else return "暂无";
|
|
|
}
|
|
|
}
|