Browse Source

高企认定详情CRUD

Antiloveg 8 years ago
parent
commit
850abab4bd

+ 70 - 1
src/main/java/com/goafanti/admin/controller/AdminApiController.java

@@ -37,6 +37,11 @@ import com.goafanti.common.utils.StringUtils;
 import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.core.shiro.token.TokenManager;
 import com.goafanti.techservice.cognizance.bo.ActivityNumberBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceCatagoryBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceDetailBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceManageCostBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceOrgInfoBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceResearchCostBo;
 import com.goafanti.techservice.cognizance.service.OrgActivityCostService;
 import com.goafanti.techservice.cognizance.service.OrgActivityService;
 import com.goafanti.techservice.cognizance.service.OrgCognizanceLogService;
@@ -833,7 +838,6 @@ public class AdminApiController extends BaseApiController {
 	public Result cognizanceLog(String cid){
 		Result res = new Result();
 		List<OrgCognizanceLog> list = orgCognizanceLogService.selectOrgCognizanceLogByCid(cid);
-		System.out.println(list.size());
 		res.setData(list);
 		return res;
 	}
@@ -847,8 +851,31 @@ public class AdminApiController extends BaseApiController {
 	@RequestMapping(value = "/cognizanceDetail", method = RequestMethod.POST)
 	public Result cognizanceDetail(String uid, String cid){
 		Result res = new Result();
+		res.setData(handleCognizanceDetail(uid, cid));
 		return res;
 	}
+	
+	/**
+	 * 保存高企认定详情
+	 * @throws ParseException 
+	 */
+	@RequestMapping(value = "/disposeCognizanceDetail", method = RequestMethod.POST)
+	public Result disposeCognizanceDetail(OrgCognizance cog, OrgCognizanceLog log, String recordTimeFormattedDate) throws ParseException{
+		Result res = new Result();
+		if (null != log.getState()){
+			cog.setState(log.getState());
+			log.setId(UUID.randomUUID().toString());
+			log.setCid(cog.getId());
+			if (!StringUtils.isBlank(recordTimeFormattedDate)) {
+				log.setRecordTime(DateUtils.parseDate(recordTimeFormattedDate, "yyyy-MM-dd"));
+			}
+			orgCognizanceLogService.insert(log);
+		} 
+			orgCognizanceService.updateByPrimaryKeySelective(cog);
+		return res;
+	}
+	
+	
 
 	// 判断用户是否通过认证
 	private Result checkCertify(Result res, String uid) {
@@ -871,6 +898,48 @@ public class AdminApiController extends BaseApiController {
 		return (Pagination<UserListBo>) userService.listUser(mobile, email, createTime, number, aftUsername,
 				auditStatus, pNo, pSize);
 	}
+	
+	private CognizanceDetailBo handleCognizanceDetail(String uid, String cid){
+		CognizanceDetailBo cog = new CognizanceDetailBo();
+		
+		CognizanceOrgInfoBo orgInfo = orgCognizanceService.selectCognizanceOrgInfoBoByUid(uid, cid);
+		cog.setUid(null == orgInfo.getUid() ? "" : orgInfo.getUid());
+		cog.setCid(null == orgInfo.getCid() ? "" : orgInfo.getCid());
+		cog.setUnitName(null == orgInfo.getUnitName() ? "" : orgInfo.getUnitName());
+		cog.setOrgCode(null == orgInfo.getOrgCode() ? "" : orgInfo.getOrgCode());
+		cog.setPostalAddress(null == orgInfo.getPostalAddress() ? "" : orgInfo.getPostalAddress());
+		cog.setContacts(null == orgInfo.getContacts() ? "" : orgInfo.getContacts());
+		cog.setTechnicalField1(null == orgInfo.getTechnicalField1() ? 0 : orgInfo.getTechnicalField1());
+		cog.setTechnicalField2(null == orgInfo.getTechnicalField2() ? 0 : orgInfo.getTechnicalField2());
+		cog.setTechnicalField3(null == orgInfo.getTechnicalField3() ? 0 : orgInfo.getTechnicalField3());
+		cog.setBasicResearchCost(null == orgInfo.getBasicResearchCost() ? 0 : orgInfo.getBasicResearchCost());
+		cog.setAccident(null == orgInfo.getAccient() ? 0 : orgInfo.getAccient());
+		
+		CognizanceResearchCostBo  researchCost = orgCognizanceService.selectCognizanceResearchCostBoByUid(uid);
+		cog.setResearchCost(null == researchCost.getResearchCost() ? 0 :  researchCost.getResearchCost());
+		cog.setTerritory(null == researchCost.getTerritory() ? 0 : researchCost.getTerritory());
+		
+		CognizanceManageCostBo manageCost = orgCognizanceService.selectCognizanceManageCostBoByUid(uid);
+		cog.setNetAsset1(null == manageCost.getNetAsset1() ? 0 : manageCost.getNetAsset1());
+		cog.setNetAsset2(null == manageCost.getNetAsset2() ? 0 : manageCost.getNetAsset2());
+		cog.setNetAsset3(null == manageCost.getNetAsset3() ? 0 : manageCost.getNetAsset3());
+		cog.setSalesRevenue1(null == manageCost.getSalesRevenue1() ? 0 : manageCost.getSalesRevenue1());
+		cog.setSalesRevenue2(null == manageCost.getSalesRevenue2() ? 0 : manageCost.getSalesRevenue2());
+		cog.setSalesRevenue3(null == manageCost.getSalesRevenue3() ? 0 : manageCost.getSalesRevenue3());
+		cog.setGrossProfit1(null == manageCost.getGrossProfit1() ? 0 : manageCost.getGrossProfit1());
+		cog.setGrossProfit2(null == manageCost.getGrossProfit2() ? 0 : manageCost.getGrossProfit2());
+		cog.setGrossProfit3(null == manageCost.getGrossProfit3() ? 0 : manageCost.getGrossProfit3());
+		
+		CognizanceCatagoryBo catagory = orgCognizanceService.selectCognizanceCatagoryBoByUid(uid);
+		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() ? 0 : catagory.getTotalRevenue());
+		
+		cog.setLastYearRevenue(orgCognizanceService.selectLastYearRevenueByUid(uid));
+		return cog;
+	}
 
 	
 }

+ 14 - 0
src/main/java/com/goafanti/common/dao/OrgCognizanceMapper.java

@@ -1,6 +1,10 @@
 package com.goafanti.common.dao;
 
 import com.goafanti.common.model.OrgCognizance;
+import com.goafanti.techservice.cognizance.bo.CognizanceCatagoryBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceManageCostBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceOrgInfoBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceResearchCostBo;
 
 public interface OrgCognizanceMapper {
     int deleteByPrimaryKey(String id);
@@ -14,4 +18,14 @@ public interface OrgCognizanceMapper {
     int updateByPrimaryKeySelective(OrgCognizance record);
 
     int updateByPrimaryKey(OrgCognizance record);
+
+	CognizanceOrgInfoBo selectCognizanceOrgInfoBoByUid(String uid, String cid);
+
+	CognizanceResearchCostBo selectCognizanceResearchCostBoByUid(String uid);
+
+	CognizanceManageCostBo selectCognizanceManageCostBoByUid(String uid);
+
+	CognizanceCatagoryBo selectCognizanceCatagoryBoByUid(String uid);
+
+	Integer selectLastYearRevenueByUid(String uid);
 }

+ 72 - 0
src/main/java/com/goafanti/common/mapper/OrgCognizanceMapper.xml

@@ -309,4 +309,76 @@
 	</if>
 	) as n
 	</select>
+	
+	
+	<select id="selectCognizanceOrgInfoBoByUid"  resultType="com.goafanti.techservice.cognizance.bo.CognizanceOrgInfoBo">
+		select u.id as uid, c.id as cid, o.unit_name as unitName, o.org_code as orgCode, o.postal_address as postalAddress, 
+			c.contacts, c.technical_field1 as technicalField1, c.technical_field2 as technicalField2, c.technical_field3 as technicalField3,
+			c.basic_research_cost as basicResearchCost, c.accident
+		from user u 
+		LEFT JOIN organization_identity o on u.id = o.uid and u.id = #{0}
+		INNER JOIN org_cognizance c on c.uid = u.id and u.id = #{0} and c.deleted_sign = 0 and c.id = #{1}
+	</select>
+	
+	<select id="selectCognizanceResearchCostBoByUid" parameterType="java.lang.String" resultType="com.goafanti.techservice.cognizance.bo.CognizanceResearchCostBo">
+		select m.uid, sum(m.cost1) as researchCost, sum(m.territory) as territory from(
+			select uid, (internal_labor_cost + internal_direct_cost + internal_depreciation_cost + internal_amortization_cost 
+			+ internal_design_cost + internal_equipment_cost + internal_other_cost +external_total_cost) as cost1, 
+			external_abroad_cost as territory
+			 from org_activity_cost where uid = #{uid,jdbcType=VARCHAR} and start_date >= (select  str_to_date(CONCAT(year,day), '%Y-%m-%d %H')  from (
+			SELECT (DATE_FORMAT(NOW(), '%Y')-3) as year ,'-01-01' as day FROM DUAL) x)
+			or end_date <![CDATA[ < ]]> (select  str_to_date(CONCAT(year,day), '%Y-%m-%d %H')  from (
+			SELECT DATE_FORMAT(NOW(), '%Y') as year ,'-01-01' as day FROM DUAL) y) and deleted_sign = 0
+		) m
+	</select>
+	
+	<select id="selectCognizanceManageCostBoByUid" parameterType="java.lang.String" resultType="com.goafanti.techservice.cognizance.bo.CognizanceManageCostBo">
+		select a.uid, a.netAsset1, a.salesRevenue1, a.grossProfit1, b.netAsset2, b.salesRevenue2, b.grossProfit2, 
+			  c.netAsset3, c.salesRevenue3, c.grossProfit3 from 
+			(
+			select uid, net_asset as netAsset1, gross_profit as grossProfit1, sales_revenue as salesRevenue1 from org_finance where uid = #{uid,jdbcType=VARCHAR} and year = 
+			(SELECT (DATE_FORMAT(NOW(), '%Y')-1)  FROM DUAL ) and deleted_sign = 0
+			)  a INNER JOIN
+			(
+			select uid, net_asset as netAsset2, gross_profit as grossProfit2, sales_revenue as salesRevenue2 from org_finance where uid = #{uid,jdbcType=VARCHAR} and year = 
+			(SELECT (DATE_FORMAT(NOW(), '%Y')-2)  FROM DUAL ) and deleted_sign = 0
+			) b on a.uid = b. uid
+			INNER JOIN
+			(
+			select uid, net_asset as netAsset3, gross_profit as grossProfit3, sales_revenue as salesRevenue3 from org_finance where uid = #{uid,jdbcType=VARCHAR} and year = 
+			(SELECT (DATE_FORMAT(NOW(), '%Y')-3)  FROM DUAL ) and deleted_sign = 0
+			) c on a.uid = c.uid
+	</select>
+	
+	<select id="selectCognizanceCatagoryBoByUid" parameterType="java.lang.String" resultType="com.goafanti.techservice.cognizance.bo.CognizanceCatagoryBo">
+		select x.uid, x.firstCatagory, x.secondCatagory, y.firmTotal, y.techTotal, z.totalRevenue
+			from 
+			(
+			select a.uid, a.firstCatagory, b.secondCatagory from
+			(
+			select uid, count(1) as firstCatagory from org_intellectual_property 
+			where uid = #{uid,jdbcType=VARCHAR} and evaluation_category= 0 and deleted_sign = 0 GROUP BY uid
+			) a INNER JOIN 
+			(
+			select uid, count(1) as secondCatagory from org_intellectual_property 
+			where uid = #{uid,jdbcType=VARCHAR} and evaluation_category = 1 and deleted_sign = 0 GROUP BY uid
+			) b on a.uid = b.uid
+			) x  INNER JOIN 
+			(
+			select uid, firm_total as firmTotal, tech_total as techTotal from org_human_resource where uid = #{uid,jdbcType=VARCHAR} and year = 
+			(SELECT (DATE_FORMAT(NOW(), '%Y')-1)  FROM DUAL ) and deleted_sign = 0
+			) y on y.uid = x.uid
+			INNER JOIN 
+			(
+			SELECT uid,(operating_income + non_operating_income - non_taxable_income) as totalRevenue
+			from org_ratepay where uid = #{uid,jdbcType=VARCHAR} 
+			and year = (SELECT (DATE_FORMAT(NOW(), '%Y')-1)  FROM DUAL) and deleted_sign = 0
+			) z on z.uid = x.uid
+	</select>
+	
+	<select id="selectLastYearRevenueByUid" parameterType="java.lang.String" resultType="Integer">
+		SELECT sum(last_year_revenue) as lastYearRevenue
+			from org_tech_product where uid = #{uid,jdbcType=VARCHAR}
+			and year = (SELECT (DATE_FORMAT(NOW(), '%Y')-1)  FROM DUAL) and deleted_sign = 0
+	</select>
 </mapper>

+ 67 - 0
src/main/java/com/goafanti/techservice/cognizance/bo/CognizanceCatagoryBo.java

@@ -0,0 +1,67 @@
+package com.goafanti.techservice.cognizance.bo;
+
+public class CognizanceCatagoryBo {
+	private String uid;
+	
+	private Integer firstCatagory;
+	
+	private Integer secondCatagory;
+	
+	private Integer firmTotal;
+	
+	private Integer techTotal;
+	
+	private Integer totalRevenue;
+
+	public String getUid() {
+		return uid;
+	}
+
+	public void setUid(String uid) {
+		this.uid = uid;
+	}
+
+	public Integer getFirstCatagory() {
+		return firstCatagory;
+	}
+
+	public void setFirstCatagory(Integer firstCatagory) {
+		this.firstCatagory = firstCatagory;
+	}
+
+	public Integer getSecondCatagory() {
+		return secondCatagory;
+	}
+
+	public void setSecondCatagory(Integer secondCatagory) {
+		this.secondCatagory = secondCatagory;
+	}
+
+	public Integer getFirmTotal() {
+		return firmTotal;
+	}
+
+	public void setFirmTotal(Integer firmTotal) {
+		this.firmTotal = firmTotal;
+	}
+
+	public Integer getTechTotal() {
+		return techTotal;
+	}
+
+	public void setTechTotal(Integer techTotal) {
+		this.techTotal = techTotal;
+	}
+
+	public Integer getTotalRevenue() {
+		return totalRevenue;
+	}
+
+	public void setTotalRevenue(Integer totalRevenue) {
+		this.totalRevenue = totalRevenue;
+	}
+
+	
+	
+	
+}

+ 10 - 10
src/main/java/com/goafanti/techservice/cognizance/bo/CognizanceDetailBo.java

@@ -49,12 +49,12 @@ public class CognizanceDetailBo {
 	/**
 	 * 一类知识产权数量
 	 */
-	private Integer firstCategory;
+	private Integer firstCatagory;
 	
 	/**
 	 * 二类知识产权数量
 	 */
-	private Integer secondCategory;
+	private Integer secondCatagory;
 	
 	/**
 	 * 职工总数
@@ -216,20 +216,20 @@ public class CognizanceDetailBo {
 		this.technicalField3 = technicalField3;
 	}
 
-	public Integer getFirstCategory() {
-		return firstCategory;
+	public Integer getFirstCatagory() {
+		return firstCatagory;
 	}
 
-	public void setFirstCategory(Integer firstCategory) {
-		this.firstCategory = firstCategory;
+	public void setFirstCatagory(Integer firstCatagory) {
+		this.firstCatagory = firstCatagory;
 	}
 
-	public Integer getSecondCategory() {
-		return secondCategory;
+	public Integer getSecondCatagory() {
+		return secondCatagory;
 	}
 
-	public void setSecondCategory(Integer secondCategory) {
-		this.secondCategory = secondCategory;
+	public void setSecondCatagory(Integer secondCatagory) {
+		this.secondCatagory = secondCatagory;
 	}
 
 	public Integer getFirmTotal() {

+ 105 - 0
src/main/java/com/goafanti/techservice/cognizance/bo/CognizanceManageCostBo.java

@@ -0,0 +1,105 @@
+package com.goafanti.techservice.cognizance.bo;
+
+public class CognizanceManageCostBo {
+	private String uid;
+	
+	private Integer netAsset1;
+	
+	private Integer salesRevenue1;
+	
+	private Integer grossProfit1;
+	
+	private Integer netAsset2;
+	
+	private Integer salesRevenue2;
+	
+	private Integer grossProfit2;
+	
+	private Integer netAsset3;
+	
+	private Integer salesRevenue3;
+	
+	private Integer grossProfit3;
+
+	public String getUid() {
+		return uid;
+	}
+
+	public void setUid(String uid) {
+		this.uid = uid;
+	}
+
+	public Integer getNetAsset1() {
+		return netAsset1;
+	}
+
+	public void setNetAsset1(Integer netAsset1) {
+		this.netAsset1 = netAsset1;
+	}
+
+	public Integer getSalesRevenue1() {
+		return salesRevenue1;
+	}
+
+	public void setSalesRevenue1(Integer salesRevenue1) {
+		this.salesRevenue1 = salesRevenue1;
+	}
+
+	public Integer getGrossProfit1() {
+		return grossProfit1;
+	}
+
+	public void setGrossProfit1(Integer grossProfit1) {
+		this.grossProfit1 = grossProfit1;
+	}
+
+	public Integer getNetAsset2() {
+		return netAsset2;
+	}
+
+	public void setNetAsset2(Integer netAsset2) {
+		this.netAsset2 = netAsset2;
+	}
+
+	public Integer getSalesRevenue2() {
+		return salesRevenue2;
+	}
+
+	public void setSalesRevenue2(Integer salesRevenue2) {
+		this.salesRevenue2 = salesRevenue2;
+	}
+
+	public Integer getGrossProfit2() {
+		return grossProfit2;
+	}
+
+	public void setGrossProfit2(Integer grossProfit2) {
+		this.grossProfit2 = grossProfit2;
+	}
+
+	public Integer getNetAsset3() {
+		return netAsset3;
+	}
+
+	public void setNetAsset3(Integer netAsset3) {
+		this.netAsset3 = netAsset3;
+	}
+
+	public Integer getSalesRevenue3() {
+		return salesRevenue3;
+	}
+
+	public void setSalesRevenue3(Integer salesRevenue3) {
+		this.salesRevenue3 = salesRevenue3;
+	}
+
+	public Integer getGrossProfit3() {
+		return grossProfit3;
+	}
+
+	public void setGrossProfit3(Integer grossProfit3) {
+		this.grossProfit3 = grossProfit3;
+	}
+	
+	
+}

+ 121 - 0
src/main/java/com/goafanti/techservice/cognizance/bo/CognizanceOrgInfoBo.java

@@ -0,0 +1,121 @@
+package com.goafanti.techservice.cognizance.bo;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonFormat.Shape;
+
+public class CognizanceOrgInfoBo {
+	private String uid;
+	
+	private String cid;
+	
+	private String unitName;
+	
+	private String orgCode;
+	
+	private String postalAddress;
+	
+	private String contacts;
+	
+	private Integer technicalField1;
+	
+	private Integer technicalField2;
+	
+	private Integer technicalField3;
+	
+	private Integer basicResearchCost;
+	
+	private Integer accient;
+
+	public String getUid() {
+		return uid;
+	}
+
+	public void setUid(String uid) {
+		this.uid = uid;
+	}
+
+	public String getCid() {
+		return cid;
+	}
+
+	public void setCid(String cid) {
+		this.cid = cid;
+	}
+
+	public String getUnitName() {
+		return unitName;
+	}
+
+	public void setUnitName(String unitName) {
+		this.unitName = unitName;
+	}
+
+	public String getOrgCode() {
+		return orgCode;
+	}
+
+	public void setOrgCode(String orgCode) {
+		this.orgCode = orgCode;
+	}
+
+	public String getPostalAddress() {
+		return postalAddress;
+	}
+
+	public void setPostalAddress(String postalAddress) {
+		this.postalAddress = postalAddress;
+	}
+
+	public String getContacts() {
+		return contacts;
+	}
+
+	public void setContacts(String contacts) {
+		this.contacts = contacts;
+	}
+	
+	@JsonFormat(shape = Shape.STRING)
+	public Integer getTechnicalField1() {
+		return technicalField1;
+	}
+
+	public void setTechnicalField1(Integer technicalField1) {
+		this.technicalField1 = technicalField1;
+	}
+	
+	@JsonFormat(shape = Shape.STRING)
+	public Integer getTechnicalField2() {
+		return technicalField2;
+	}
+
+	public void setTechnicalField2(Integer technicalField2) {
+		this.technicalField2 = technicalField2;
+	}
+	
+	@JsonFormat(shape = Shape.STRING)
+	public Integer getTechnicalField3() {
+		return technicalField3;
+	}
+
+	public void setTechnicalField3(Integer technicalField3) {
+		this.technicalField3 = technicalField3;
+	}
+
+	public Integer getBasicResearchCost() {
+		return basicResearchCost;
+	}
+
+	public void setBasicResearchCost(Integer basicResearchCost) {
+		this.basicResearchCost = basicResearchCost;
+	}
+
+	public Integer getAccient() {
+		return accient;
+	}
+
+	public void setAccient(Integer accient) {
+		this.accient = accient;
+	}
+	
+	
+}

+ 36 - 0
src/main/java/com/goafanti/techservice/cognizance/bo/CognizanceResearchCostBo.java

@@ -0,0 +1,36 @@
+package com.goafanti.techservice.cognizance.bo;
+
+public class CognizanceResearchCostBo {
+	private String uid;
+	
+	private Integer researchCost;
+	
+	private Integer territory;
+
+	public String getUid() {
+		return uid;
+	}
+
+	public void setUid(String uid) {
+		this.uid = uid;
+	}
+
+	public Integer getResearchCost() {
+		return researchCost;
+	}
+
+	public void setResearchCost(Integer researchCost) {
+		this.researchCost = researchCost;
+	}
+
+	public Integer getTerritory() {
+		return territory;
+	}
+
+	public void setTerritory(Integer territory) {
+		this.territory = territory;
+	}
+	
+	
+
+}

+ 3 - 0
src/main/java/com/goafanti/techservice/cognizance/service/OrgCognizanceLogService.java

@@ -8,4 +8,7 @@ public interface OrgCognizanceLogService {
 
 	List<OrgCognizanceLog> selectOrgCognizanceLogByCid(String cid);
 
+	OrgCognizanceLog insert(OrgCognizanceLog log);
+
+
 }

+ 16 - 0
src/main/java/com/goafanti/techservice/cognizance/service/OrgCognizanceService.java

@@ -3,6 +3,10 @@ package com.goafanti.techservice.cognizance.service;
 import com.goafanti.common.model.OrgCognizance;
 import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.techservice.cognizance.bo.CognizanceBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceCatagoryBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceManageCostBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceOrgInfoBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceResearchCostBo;
 
 public interface OrgCognizanceService {
 
@@ -10,5 +14,17 @@ public interface OrgCognizanceService {
 
 	Pagination<CognizanceBo> listCognizance(String locationProvince, String unitName, Integer pNo, Integer pSize);
 
+	CognizanceOrgInfoBo selectCognizanceOrgInfoBoByUid(String uid, String cid);
+
+	CognizanceResearchCostBo selectCognizanceResearchCostBoByUid(String uid);
+
+	CognizanceManageCostBo selectCognizanceManageCostBoByUid(String uid);
+
+	CognizanceCatagoryBo selectCognizanceCatagoryBoByUid(String uid);
+
+	Integer selectLastYearRevenueByUid(String uid);
+
+	int updateByPrimaryKeySelective(OrgCognizance cog);
+
 
 }

+ 7 - 0
src/main/java/com/goafanti/techservice/cognizance/service/impl/OrgCognizanceLogServiceImpl.java

@@ -17,4 +17,11 @@ public class OrgCognizanceLogServiceImpl implements OrgCognizanceLogService {
 	public List<OrgCognizanceLog> selectOrgCognizanceLogByCid(String cid) {
 		return orgCognizanceLogMapper.selectOrgCognizanceLogByCid(cid);
 	}
+
+	@Override
+	public OrgCognizanceLog insert(OrgCognizanceLog log) {
+		orgCognizanceLogMapper.insert(log);
+		return log;
+	}
+
 }

+ 34 - 0
src/main/java/com/goafanti/techservice/cognizance/service/impl/OrgCognizanceServiceImpl.java

@@ -12,6 +12,10 @@ import com.goafanti.common.model.OrgCognizance;
 import com.goafanti.core.mybatis.BaseMybatisDao;
 import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.techservice.cognizance.bo.CognizanceBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceCatagoryBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceManageCostBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceOrgInfoBo;
+import com.goafanti.techservice.cognizance.bo.CognizanceResearchCostBo;
 import com.goafanti.techservice.cognizance.service.OrgCognizanceService;
 @Service
 public class OrgCognizanceServiceImpl extends BaseMybatisDao<OrgCognizanceMapper> implements OrgCognizanceService {
@@ -48,4 +52,34 @@ public class OrgCognizanceServiceImpl extends BaseMybatisDao<OrgCognizanceMapper
 		return (Pagination<CognizanceBo>) findPage("findCognizanceBoByPage","findCognizanceBoCount", params, pageNo,
 				pageSize);
 	}
+
+	@Override
+	public CognizanceOrgInfoBo selectCognizanceOrgInfoBoByUid(String uid, String cid) {
+		return orgCognizanceMapper.selectCognizanceOrgInfoBoByUid(uid, cid);
+	}
+
+	@Override
+	public CognizanceResearchCostBo selectCognizanceResearchCostBoByUid(String uid) {
+		return orgCognizanceMapper.selectCognizanceResearchCostBoByUid(uid);
+	}
+
+	@Override
+	public CognizanceManageCostBo selectCognizanceManageCostBoByUid(String uid) {
+		return orgCognizanceMapper.selectCognizanceManageCostBoByUid(uid);
+	}
+
+	@Override
+	public CognizanceCatagoryBo selectCognizanceCatagoryBoByUid(String uid) {
+		return orgCognizanceMapper.selectCognizanceCatagoryBoByUid(uid);
+	}
+
+	@Override
+	public Integer selectLastYearRevenueByUid(String uid) {
+		return orgCognizanceMapper.selectLastYearRevenueByUid(uid);
+	}
+
+	@Override
+	public int updateByPrimaryKeySelective(OrgCognizance cog) {
+		return orgCognizanceMapper.updateByPrimaryKeySelective(cog);
+	}
 }