|
|
@@ -9,7 +9,6 @@ import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -309,12 +308,10 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
|
|
|
if (DemandReleaseStatus.UNRELEASE.getCode().equals(d.getReleaseStatus())
|
|
|
&& DemandReleaseStatus.RELEASED.getCode().equals(demand.getReleaseStatus())) {
|
|
|
d.setStatus(DemandStatus.CREATE.getCode());
|
|
|
- d.setValidityPeriod(null);
|
|
|
+ demandMapper.updateValidityPeriod(demand.getId());
|
|
|
}
|
|
|
|
|
|
- BeanUtils.copyProperties(d, demand);
|
|
|
-
|
|
|
- return demandMapper.updateByPrimaryKey(demand);
|
|
|
+ return demandMapper.updateByPrimaryKeySelective(d);
|
|
|
}
|
|
|
|
|
|
@Override
|