|
|
@@ -45,6 +45,7 @@ import com.goafanti.common.model.Notice;
|
|
|
import com.goafanti.common.model.OrgCognizance;
|
|
|
import com.goafanti.common.model.OrgCognizanceLog;
|
|
|
import com.goafanti.common.model.OrgCognizanceProportion;
|
|
|
+import com.goafanti.common.model.OrgHumanResource;
|
|
|
import com.goafanti.common.model.OrganizationIdentity;
|
|
|
import com.goafanti.common.model.User;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
@@ -166,15 +167,22 @@ public class OrgCognizanceServiceImpl extends BaseMybatisDao<OrgCognizanceMapper
|
|
|
cog.setGrossProfit3(
|
|
|
null == manageCost.getGrossProfit3() ? new BigDecimal(0) : manageCost.getGrossProfit3());
|
|
|
}
|
|
|
+ Integer firstCatagory = orgCognizanceMapper.findFirstCatagory(year, uid);
|
|
|
+ Integer secondCatagory = orgCognizanceMapper.findSecondCatagory(year, uid);
|
|
|
+ OrgHumanResource ohr = orgCognizanceMapper.findFirmAndTechTotal(year, uid);
|
|
|
+ BigDecimal totalRevenue = orgCognizanceMapper.findTotalRevenue(year, uid);
|
|
|
+ /*
|
|
|
+ * CognizanceCatagoryBo catagory =
|
|
|
+ * orgCognizanceMapper.selectCognizanceCatagoryBoByUidAndYear(year,
|
|
|
+ * uid); if (null != catagory) {
|
|
|
+ */
|
|
|
+ cog.setFirstCatagory(null == firstCatagory ? 0 : firstCatagory);
|
|
|
+ cog.setSecondCatagory(null == secondCatagory ? 0 : secondCatagory);
|
|
|
+ cog.setFirmTotal(null == ohr.getFirmTotal() ? 0 : ohr.getFirmTotal());
|
|
|
+ cog.setTechTotal(null == ohr.getTechTotal() ? 0 : ohr.getTechTotal());
|
|
|
+ cog.setTotalRevenue(null == totalRevenue ? new BigDecimal(0) : totalRevenue);
|
|
|
+ // }
|
|
|
|
|
|
- CognizanceCatagoryBo catagory = orgCognizanceMapper.selectCognizanceCatagoryBoByUidAndYear(year, uid);
|
|
|
- if (null != catagory) {
|
|
|
- cog.setFirstCatagory(null == catagory.getFirstCatagory() ? 0 : catagory.getFirstCatagory());
|
|
|
- cog.setSecondCatagory(null == catagory.getSecondCatagory() ? 0 : catagory.getSecondCatagory());
|
|
|
- cog.setFirmTotal(null == catagory.getFirmTotal() ? 0 : catagory.getFirmTotal());
|
|
|
- cog.setTechTotal(null == catagory.getTechTotal() ? 0 : catagory.getTechTotal());
|
|
|
- cog.setTotalRevenue(null == catagory.getTotalRevenue() ? new BigDecimal(0) : catagory.getTotalRevenue());
|
|
|
- }
|
|
|
BigDecimal revenue = orgCognizanceMapper.selectLastYearRevenueByUidAndYear(year, uid); // 上年度销售收入
|
|
|
cog.setLastYearRevenue(null == revenue ? new BigDecimal(0) : revenue);
|
|
|
return cog;
|
|
|
@@ -234,7 +242,8 @@ public class OrgCognizanceServiceImpl extends BaseMybatisDao<OrgCognizanceMapper
|
|
|
cog.setAcceptDate(recordTime);
|
|
|
} else if (OrgCognizanceStatus.getStatus(cog.getState()) == OrgCognizanceStatus.ISSUING) {
|
|
|
cog.setIssuingDate(recordTime);
|
|
|
- o.setCertificateNumber(StringUtils.isBlank(cog.getCertificateNumber()) ? "" : cog.getCertificateNumber());
|
|
|
+ o.setCertificateNumber(
|
|
|
+ StringUtils.isBlank(cog.getCertificateNumber()) ? "" : cog.getCertificateNumber());
|
|
|
o.setIssuingDate(recordTime);
|
|
|
o.setCogContacts(null == cog.getContacts() ? null : cog.getContacts());
|
|
|
organizationIdentityMapper.updateByPrimaryKeySelective(o);
|