|
|
@@ -25,6 +25,7 @@ import com.goafanti.common.model.OutsourceLog;
|
|
|
import com.goafanti.common.model.OutsourceOrganization;
|
|
|
import com.goafanti.common.model.TOrderLog;
|
|
|
import com.goafanti.common.model.TOrderNew;
|
|
|
+import com.goafanti.common.model.TOrderOutsource;
|
|
|
import com.goafanti.common.model.TOrderTask;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
@@ -193,5 +194,27 @@ public class OutsourceOrgServiceImpl extends BaseMybatisDao<TOrderOutsourceMapp
|
|
|
public List<OutOutsourceLog> selectOutsourceLog(Integer tid) {
|
|
|
return outsourceLogMapper.selectByTid(tid);
|
|
|
}
|
|
|
+ @Override
|
|
|
+ public int updateSuperAdminReject(Integer id) {
|
|
|
+ TOrderOutsource tto=tOrderOutsourceMapper.selectByPrimaryKey(id);
|
|
|
+ //start_type 0外包 1供应商
|
|
|
+ if (tto.getStartType()==0) {
|
|
|
+ TOrderTask tt=new TOrderTask();
|
|
|
+ tt.setId(tto.getTid());
|
|
|
+ tt.setOutsource(0);
|
|
|
+ tOrderTaskMapper.updateByPrimaryKeySelective(tt);
|
|
|
+ }
|
|
|
+ OutsourceLog ol=new OutsourceLog();
|
|
|
+ ol.setTid(tto.getTid());
|
|
|
+ ol.setAid(TokenManager.getAdminId());
|
|
|
+ ol.setAname("超级管理员");
|
|
|
+ ol.setStatus(2);
|
|
|
+ ol.setRemarks("超级管理员强制驳回");
|
|
|
+ outsourceLogMapper.insert(ol);
|
|
|
+ TOrderOutsource tto2=new TOrderOutsource();
|
|
|
+ tto2.setId(id);
|
|
|
+ tto2.setRefundStatus(2);
|
|
|
+ return tOrderOutsourceMapper.updateByPrimaryKeySelective(tto2);
|
|
|
+ }
|
|
|
|
|
|
}
|