|
|
@@ -679,7 +679,8 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
@Override
|
|
|
public int deleteSoftWritingPrice(Integer id) {
|
|
|
SoftWritingPrice sw=softWritingPriceMapper.selectByPrimaryKey(id);
|
|
|
- if (sw.getCid()!=null) {
|
|
|
+ int i=softWritingPriceMapper.selectCountByCid(sw.getCid());
|
|
|
+ if (i==1) {
|
|
|
companyLibraryMapper.deleteByPrimaryKey(sw.getCid());
|
|
|
}
|
|
|
return softWritingPriceMapper.deleteByPrimaryKey(id);
|