|
|
@@ -613,14 +613,13 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
|
|
|
@Override
|
|
|
public int insertSoftWritingPrice(SoftWritingPrice s) {
|
|
|
-
|
|
|
return softWritingPriceMapper.insertSelective(s);
|
|
|
}
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public int updateSoftWritingPrice(SoftWritingPrice s) {
|
|
|
-
|
|
|
+ //
|
|
|
return softWritingPriceMapper.updateByPrimaryKeySelective(s);
|
|
|
}
|
|
|
@Override
|
|
|
@@ -655,6 +654,10 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
|
|
|
@Override
|
|
|
public int deleteSoftWritingPrice(Integer id) {
|
|
|
+ SoftWritingPrice sw=softWritingPriceMapper.selectByPrimaryKey(id);
|
|
|
+ if (sw.getCid()!=null) {
|
|
|
+ companyLibraryMapper.deleteByPrimaryKey(sw.getCid());
|
|
|
+ }
|
|
|
return softWritingPriceMapper.deleteByPrimaryKey(id);
|
|
|
}
|
|
|
|
|
|
@@ -785,23 +788,24 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
|
|
|
@Override
|
|
|
public int updatepatentPrice(PatentPrice p) {
|
|
|
-
|
|
|
return patentPriceMapper.updateByPrimaryKeySelective(p);
|
|
|
}
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public int deletepatentPrice(Integer id) {
|
|
|
+ PatentPrice pp=patentPriceMapper.selectByPrimaryKey(id);
|
|
|
+ if (pp.getCid()!=null) {
|
|
|
+ companyLibraryMapper.deleteByPrimaryKey(pp.getCid());
|
|
|
+ }
|
|
|
return patentPriceMapper.deleteByPrimaryKey(id);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public List<PatentPrice> listpatentPrice(String name) {
|
|
|
return patentPriceMapper.selectlist(name);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public boolean addCompanyChekeNumber(ThirdPartyCompany t) {
|
|
|
TOrderTask tt=tOrderTaskMapper.selectByPrimaryKey(t.getTid());
|
|
|
@@ -817,11 +821,7 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
@Override
|
|
|
public void checkGetAmount(TOrderPayment p) {
|
|
|
if(p.getApplicationAmount()==null) {
|
|
|
@@ -831,16 +831,4 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|