|
@@ -22,6 +22,7 @@ import com.pj.common.core.exception.ServiceException;
|
|
|
import com.pj.current.satoken.StpUserUtil;
|
|
|
import com.pj.enummj.*;
|
|
|
import com.pj.tb_purchaser.param.PurchaserParam;
|
|
|
+import com.pj.utils.sg.AjaxError;
|
|
|
import com.pj.utils.so.SoMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFRow;
|
|
@@ -168,6 +169,19 @@ public class TbPurchaserService extends ServiceImpl<TbPurchaserMapper, TbPurchas
|
|
|
if(purchaserList.size() == 0)return null;
|
|
|
return purchaserList.get(0);
|
|
|
}
|
|
|
+ /** 收购商批量审核 */
|
|
|
+ public void auditBatch(List<Long> ids, Integer judgeStatus, String judgeContent) {
|
|
|
+ if (ids.isEmpty()) {
|
|
|
+ throw new AjaxError("必要参数不能为空");
|
|
|
+ }
|
|
|
+ List<TbPurchaser> list = listByIds(ids);
|
|
|
+ String name = StpUserUtil.getLoginName();
|
|
|
+ list.forEach(tbPurchaser -> {
|
|
|
+ tbPurchaser.setJudgeStatus(judgeStatus).setJudgeContent(judgeContent).setJudgeTime(new Date()).setJudgeBy(name);
|
|
|
+ });
|
|
|
+ this.updateBatchById(list);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/** 是否锁住收购商 */
|
|
|
public int isLock(TbPurchaserDto purchaserDto) {
|