Commit 5f70e48a by 高晓磊

采区预警新增判断错误

parent e84e7ecb
......@@ -74,7 +74,8 @@ public class SandMiningAreaServiceImpl implements SandMiningAreaService {
@Override
public void update(KObject kobject) {
sandMiningAreaDao.modify(kobject);
if(2==kobject.getInt("status")&& 0 != SandMiningAreaTypeEnum.WATERSHED.getValue()&&2!=SandMiningAreaTypeEnum.WATERSHED.getValue()){
int sandMiningAreaType = kobject.getInt("sandMiningAreaType");
if(2==kobject.getInt("status")&& sandMiningAreaType != SandMiningAreaTypeEnum.WATERSHED.getValue()&&sandMiningAreaType!=SandMiningAreaTypeEnum.NO_MINE_SAND.getValue()){
//新建采区后同步新建一条预警设置
WarnSettingEntity warnSetting = new WarnSettingEntity();
warnSetting.setBillType(SandMiningAreaConstant.SAND_MINING_AREA_BILL_TYPE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment