修复已知问题
This commit is contained in:
@ -55,6 +55,6 @@ public class HxDangerousPointController {
|
|||||||
@ApiOperation(value = "导出模板")
|
@ApiOperation(value = "导出模板")
|
||||||
//@PreAuthorize("hasAuthority('system:user:import')")
|
//@PreAuthorize("hasAuthority('system:user:import')")
|
||||||
public AjaxResult importTemplate() throws Exception {
|
public AjaxResult importTemplate() throws Exception {
|
||||||
return AjaxResult.success(ExcelUtil.exportExcel(new ArrayList<>(), "危险点表", "危险点", HxDangerousPoint.class, "危险点"));
|
return AjaxResult.success(ExcelUtil.exportExcel(new ArrayList<>(), "危险点表(等级:Ⅰ级/Ⅱ级/Ⅲ级)", "危险点", HxDangerousPoint.class, "危险点"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,6 +56,6 @@ public class HxDangerousSourceController {
|
|||||||
@ApiOperation(value = "导出模板")
|
@ApiOperation(value = "导出模板")
|
||||||
//@PreAuthorize("hasAuthority('system:user:import')")
|
//@PreAuthorize("hasAuthority('system:user:import')")
|
||||||
public AjaxResult importTemplate() throws Exception {
|
public AjaxResult importTemplate() throws Exception {
|
||||||
return AjaxResult.success(ExcelUtil.exportExcel(new ArrayList<>(), "危险源表", "危险源", HxDangerousSource.class, "危险源"));
|
return AjaxResult.success(ExcelUtil.exportExcel(new ArrayList<>(), "危险源表(等级:一级/二级/三级/四级)", "危险源", HxDangerousSource.class, "危险源"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -216,8 +216,8 @@ public class HxScientificProductionController {
|
|||||||
|
|
||||||
@GetMapping("/getProductionPlanPic")
|
@GetMapping("/getProductionPlanPic")
|
||||||
@ApiOperation(value = "项目管理-生产计划")
|
@ApiOperation(value = "项目管理-生产计划")
|
||||||
public AjaxResult getProductionPlanPic() {
|
public AjaxResult getProductionPlanPic(@RequestParam(value = "month") String month) {
|
||||||
return AjaxResult.success(hxProductionPlanService.getProductionPlanPic());
|
return AjaxResult.success(hxProductionPlanService.getProductionPlanPic(month));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getModelProductionStatisticPic")
|
@GetMapping("/getModelProductionStatisticPic")
|
||||||
|
|||||||
@ -15,7 +15,7 @@ public interface HxProductionPlanService {
|
|||||||
|
|
||||||
void importData(List<HxProductionPlan> list);
|
void importData(List<HxProductionPlan> list);
|
||||||
|
|
||||||
Map getProductionPlanPic();
|
List<HxProductionPlan> getProductionPlanPic(String month);
|
||||||
|
|
||||||
List<Map> getModelProductionStatisticPic();
|
List<Map> getModelProductionStatisticPic();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,8 +68,13 @@ public class HxDangerousPointServiceImpl implements HxDangerousPointService {
|
|||||||
public void importData(List<HxDangerousPoint> list) {
|
public void importData(List<HxDangerousPoint> list) {
|
||||||
list.forEach(hxDangerousPoint -> {
|
list.forEach(hxDangerousPoint -> {
|
||||||
if (EmptyUtil.isNotEmpty(hxDangerousPoint.getPointName())) {
|
if (EmptyUtil.isNotEmpty(hxDangerousPoint.getPointName())) {
|
||||||
|
if (checkIsExist(hxDangerousPoint.getPointName())) {
|
||||||
|
hxDangerousPointMapper.updateStatus(hxDangerousPoint);
|
||||||
|
} else {
|
||||||
hxDangerousPoint.setCreateTime(new Date());
|
hxDangerousPoint.setCreateTime(new Date());
|
||||||
hxDangerousPointMapper.insertSelective(hxDangerousPoint);
|
hxDangerousPointMapper.insertSelective(hxDangerousPoint);
|
||||||
|
|
||||||
|
}
|
||||||
handleRtmpToVideo(hxDangerousPoint);
|
handleRtmpToVideo(hxDangerousPoint);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -142,4 +147,8 @@ public class HxDangerousPointServiceImpl implements HxDangerousPointService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean checkIsExist(String name) {
|
||||||
|
return hxDangerousPointMapper.checkIsExist(name) > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,9 +52,14 @@ public class HxDangerousSourceServiceImpl implements HxDangerousSourceService {
|
|||||||
public void importData(List<HxDangerousSource> list) {
|
public void importData(List<HxDangerousSource> list) {
|
||||||
list.forEach(hxDangerousSource -> {
|
list.forEach(hxDangerousSource -> {
|
||||||
if (EmptyUtil.isNotEmpty(hxDangerousSource.getSourceName())) {
|
if (EmptyUtil.isNotEmpty(hxDangerousSource.getSourceName())) {
|
||||||
|
|
||||||
|
if (checkIsExist(hxDangerousSource.getSourceName())) {
|
||||||
|
hxDangerousSourceMapper.updateStatus(hxDangerousSource);
|
||||||
|
} else {
|
||||||
hxDangerousSource.setCreateTime(new Date());
|
hxDangerousSource.setCreateTime(new Date());
|
||||||
hxDangerousSourceMapper.insertSelective(hxDangerousSource);
|
hxDangerousSourceMapper.insertSelective(hxDangerousSource);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,4 +79,8 @@ public class HxDangerousSourceServiceImpl implements HxDangerousSourceService {
|
|||||||
returnMap.put("allLevel",hxDictMapper.selectNameListByParentId(sourceLevelParentId));
|
returnMap.put("allLevel",hxDictMapper.selectNameListByParentId(sourceLevelParentId));
|
||||||
return returnMap;
|
return returnMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean checkIsExist(String name) {
|
||||||
|
return hxDangerousSourceMapper.checkIsExist(name) > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,8 +45,8 @@ public class HxProductionPlanServiceImpl implements HxProductionPlanService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map getProductionPlanPic() {
|
public List<HxProductionPlan> getProductionPlanPic(String month) {
|
||||||
Map returnMap = new HashMap(2);
|
/* Map returnMap = new HashMap(2);
|
||||||
List<String> monthList = hxProductionPlanMapper.getAllMonth();
|
List<String> monthList = hxProductionPlanMapper.getAllMonth();
|
||||||
List<Map> mapList = new ArrayList<>();
|
List<Map> mapList = new ArrayList<>();
|
||||||
monthList.forEach(month -> {
|
monthList.forEach(month -> {
|
||||||
@ -59,7 +59,10 @@ public class HxProductionPlanServiceImpl implements HxProductionPlanService {
|
|||||||
returnMap.put("allMonth",monthList);
|
returnMap.put("allMonth",monthList);
|
||||||
returnMap.put("allModel",hxProductionPlanMapper.getAllModel());
|
returnMap.put("allModel",hxProductionPlanMapper.getAllModel());
|
||||||
returnMap.put("list",mapList);
|
returnMap.put("list",mapList);
|
||||||
return returnMap;
|
return returnMap;*/
|
||||||
|
HxProductionPlan hxProductionPlan = new HxProductionPlan();
|
||||||
|
hxProductionPlan.setMonth(month);
|
||||||
|
return hxProductionPlanMapper.selectList(hxProductionPlan);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -0,0 +1,35 @@
|
|||||||
|
drop table "ROOT"."hx_production_plan";
|
||||||
|
CREATE TABLE "ROOT"."hx_production_plan"
|
||||||
|
(
|
||||||
|
"id" BIGINT IDENTITY(1, 1) NOT NULL,
|
||||||
|
"month" VARCHAR(255),
|
||||||
|
"product_model" VARCHAR(255),
|
||||||
|
"real_adiabat" VARCHAR(255),
|
||||||
|
"real_charge" VARCHAR(255),
|
||||||
|
"real_assembly" VARCHAR(255),
|
||||||
|
"real_deliver" VARCHAR(255),
|
||||||
|
"forecast_adiabat" VARCHAR(255),
|
||||||
|
"forecast_charge" VARCHAR(255),
|
||||||
|
"forecast_assembly" VARCHAR(255),
|
||||||
|
"forecast_deliver" VARCHAR(255),
|
||||||
|
"review" VARCHAR(255),
|
||||||
|
"settlement" VARCHAR(255),
|
||||||
|
"production_number" VARCHAR(255),
|
||||||
|
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."forecast_adiabat" IS 'Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."forecast_assembly" IS 'Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."forecast_charge" IS 'Ԥ<EFBFBD><EFBFBD>װҩ';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."forecast_deliver" IS 'Ԥ<EFBFBD>⽻<EFBFBD><EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."product_model" IS '<EFBFBD><EFBFBD>Ʒ<EFBFBD>ͺ<EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."production_number" IS '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."real_adiabat" IS 'ʵ<EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."real_assembly" IS 'ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."real_charge" IS 'ʵ<EFBFBD><EFBFBD>װҩ';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."real_deliver" IS 'ʵ<EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."review" IS '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||||
|
COMMENT ON COLUMN "ROOT"."hx_production_plan"."settlement" IS '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||||
|
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX "INDEX356532075240600" ON "ROOT"."hx_production_plan"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;
|
||||||
|
|
||||||
@ -38,4 +38,8 @@ public interface HxDangerousPointMapper {
|
|||||||
List<Map> selectAllLevelNumByDept(@Param("dept") String dept, @Param("pointLevelParentId") String pointLevelParentId);
|
List<Map> selectAllLevelNumByDept(@Param("dept") String dept, @Param("pointLevelParentId") String pointLevelParentId);
|
||||||
|
|
||||||
int selectNullRtmpCount();
|
int selectNullRtmpCount();
|
||||||
|
|
||||||
|
int checkIsExist(String name);
|
||||||
|
|
||||||
|
void updateStatus(HxDangerousPoint hxDangerousPoint);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,4 +35,8 @@ public interface HxDangerousSourceMapper {
|
|||||||
* @return map
|
* @return map
|
||||||
*/
|
*/
|
||||||
List<Map> selectAllLevelNumByDept(@Param("dept") String dept, @Param("sourceLevelParentId") String sourceLevelParentId);
|
List<Map> selectAllLevelNumByDept(@Param("dept") String dept, @Param("sourceLevelParentId") String sourceLevelParentId);
|
||||||
|
|
||||||
|
int checkIsExist(String name);
|
||||||
|
|
||||||
|
void updateStatus(HxDangerousSource hxDangerousSource);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,25 +25,29 @@ public class HxProductionPlan implements Serializable {
|
|||||||
@Excel(name = "产品型号", width = 20)
|
@Excel(name = "产品型号", width = 20)
|
||||||
private String productModel;
|
private String productModel;
|
||||||
|
|
||||||
@ApiModelProperty(value = "生产数量")
|
|
||||||
@Excel(name = "生产数量", width = 20)
|
|
||||||
private String productionNumber;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "绝热数量")
|
@ApiModelProperty(value = "绝热数量")
|
||||||
@Excel(name = "绝热数量", width = 20)
|
@Excel(name = "实际绝热数量", width = 20)
|
||||||
private String adiabat;
|
private String realAdiabat;
|
||||||
|
@Excel(name = "预测绝热数量", width = 20)
|
||||||
|
private String forecastAdiabat;
|
||||||
|
|
||||||
@ApiModelProperty(value = "装药数量")
|
@ApiModelProperty(value = "装药数量")
|
||||||
@Excel(name = "装药数量", width = 20)
|
@Excel(name = "实际装药数量", width = 20)
|
||||||
private String charge;
|
private String realCharge;
|
||||||
|
@Excel(name = "预测装药数量", width = 20)
|
||||||
|
private String forecastCharge;
|
||||||
|
|
||||||
@ApiModelProperty(value = "总装数量")
|
@ApiModelProperty(value = "总装数量")
|
||||||
@Excel(name = "总装数量", width = 20)
|
@Excel(name = "实际总装数量", width = 20)
|
||||||
private String assembly;
|
private String realAssembly;
|
||||||
|
@Excel(name = "预测总装数量", width = 20)
|
||||||
|
private String forecastAssembly;
|
||||||
|
|
||||||
@ApiModelProperty(value = "交付数量")
|
@ApiModelProperty(value = "交付数量")
|
||||||
@Excel(name = "交付数量", width = 20)
|
@Excel(name = "实际交付数量", width = 20)
|
||||||
private String deliver;
|
private String realDeliver;
|
||||||
|
@Excel(name = "预测交付数量", width = 20)
|
||||||
|
private String forecastDeliver;
|
||||||
|
|
||||||
@ApiModelProperty(value = "评审数量")
|
@ApiModelProperty(value = "评审数量")
|
||||||
@Excel(name = "评审数量", width = 20)
|
@Excel(name = "评审数量", width = 20)
|
||||||
@ -53,5 +57,9 @@ public class HxProductionPlan implements Serializable {
|
|||||||
@Excel(name = "结算数量", width = 20)
|
@Excel(name = "结算数量", width = 20)
|
||||||
private String settlement;
|
private String settlement;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "生产数量")
|
||||||
|
@Excel(name = "生产数量", width = 20)
|
||||||
|
private String productionNumber;
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,15 +21,15 @@ public class HxQualitySystemReview implements Serializable {
|
|||||||
private String todayDate;
|
private String todayDate;
|
||||||
|
|
||||||
@ApiModelProperty(value = "内审数量")
|
@ApiModelProperty(value = "内审数量")
|
||||||
@Excel(name = "内审数量", width = 20)
|
@Excel(name = "内审问题数量", width = 20)
|
||||||
private String internalReviewNumber;
|
private String internalReviewNumber;
|
||||||
|
|
||||||
@ApiModelProperty(value = "外审数量")
|
@ApiModelProperty(value = "外审数量")
|
||||||
@Excel(name = "外审数量", width = 20)
|
@Excel(name = "外审问题数量", width = 20)
|
||||||
private String externalReviewNumber;
|
private String externalReviewNumber;
|
||||||
|
|
||||||
@ApiModelProperty(value = "第三方审数量")
|
@ApiModelProperty(value = "第三方审数量")
|
||||||
@Excel(name = "第三方审数量", width = 20)
|
@Excel(name = "第三方审问题数量", width = 20)
|
||||||
private String otherReviewNumber;
|
private String otherReviewNumber;
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|||||||
@ -177,4 +177,14 @@
|
|||||||
where "hx_dict"."parent_id" = #{pointLevelParentId}
|
where "hx_dict"."parent_id" = #{pointLevelParentId}
|
||||||
group BY ROOT."hx_dict"."name"
|
group BY ROOT."hx_dict"."name"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="checkIsExist" resultType="int">
|
||||||
|
select count("id") from ROOT."hx_dangerous_point" where "point_name" = #{name} limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<update id="updateStatus">
|
||||||
|
update ROOT."hx_dangerous_point"
|
||||||
|
set "status" = #{status,jdbcType=VARCHAR}
|
||||||
|
where "point_name" = #{pointName,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@ -156,4 +156,14 @@
|
|||||||
where "hx_dict"."parent_id" = #{sourceLevelParentId}
|
where "hx_dict"."parent_id" = #{sourceLevelParentId}
|
||||||
group BY ROOT."hx_dict"."name"
|
group BY ROOT."hx_dict"."name"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="checkIsExist" resultType="int">
|
||||||
|
select count("id") from ROOT."hx_dangerous_source" where "source_name" = #{name} limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<update id="updateStatus">
|
||||||
|
update ROOT."hx_dangerous_source"
|
||||||
|
set "status" = #{status,jdbcType=VARCHAR}
|
||||||
|
where "source_name" = #{sourceName,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@ -11,10 +11,14 @@
|
|||||||
<result column="month" jdbcType="VARCHAR" property="month" />
|
<result column="month" jdbcType="VARCHAR" property="month" />
|
||||||
<result column="product_model" jdbcType="VARCHAR" property="productModel" />
|
<result column="product_model" jdbcType="VARCHAR" property="productModel" />
|
||||||
<result column="production_number" jdbcType="VARCHAR" property="productionNumber" />
|
<result column="production_number" jdbcType="VARCHAR" property="productionNumber" />
|
||||||
<result column="adiabat" jdbcType="VARCHAR" property="adiabat" />
|
<result column="real_adiabat" jdbcType="VARCHAR" property="realAdiabat" />
|
||||||
<result column="charge" jdbcType="VARCHAR" property="charge" />
|
<result column="forecast_adiabat" jdbcType="VARCHAR" property="forecastAdiabat" />
|
||||||
<result column="assembly" jdbcType="VARCHAR" property="assembly" />
|
<result column="real_charge" jdbcType="VARCHAR" property="realCharge" />
|
||||||
<result column="deliver" jdbcType="VARCHAR" property="deliver" />
|
<result column="forecast_charge" jdbcType="VARCHAR" property="forecastCharge" />
|
||||||
|
<result column="real_assembly" jdbcType="VARCHAR" property="realAssembly" />
|
||||||
|
<result column="forecast_assembly" jdbcType="VARCHAR" property="forecastAssembly" />
|
||||||
|
<result column="real_deliver" jdbcType="VARCHAR" property="realDeliver" />
|
||||||
|
<result column="forecast_deliver" jdbcType="VARCHAR" property="forecastDeliver" />
|
||||||
<result column="review" jdbcType="VARCHAR" property="review" />
|
<result column="review" jdbcType="VARCHAR" property="review" />
|
||||||
<result column="settlement" jdbcType="VARCHAR" property="settlement" />
|
<result column="settlement" jdbcType="VARCHAR" property="settlement" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@ -24,8 +28,20 @@
|
|||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
This element was generated on Tue Dec 21 03:29:17 UTC 2021.
|
This element was generated on Tue Dec 21 03:29:17 UTC 2021.
|
||||||
-->
|
-->
|
||||||
"id", "month", "product_model", "production_number", "adiabat", "charge", "assembly",
|
"id",
|
||||||
"deliver", "review", "settlement"
|
"month",
|
||||||
|
"product_model",
|
||||||
|
"production_number",
|
||||||
|
"real_adiabat",
|
||||||
|
"forecast_adiabat",
|
||||||
|
"real_charge",
|
||||||
|
"forecast_charge",
|
||||||
|
"real_assembly",
|
||||||
|
"forecast_assembly",
|
||||||
|
"real_deliver",
|
||||||
|
"forecast_deliver",
|
||||||
|
"review",
|
||||||
|
"settlement"
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectList" resultMap="BaseResultMap">
|
<select id="selectList" resultMap="BaseResultMap">
|
||||||
<!--
|
<!--
|
||||||
@ -86,17 +102,29 @@
|
|||||||
<if test="productionNumber != null">
|
<if test="productionNumber != null">
|
||||||
"production_number",
|
"production_number",
|
||||||
</if>
|
</if>
|
||||||
<if test="adiabat != null">
|
<if test="realAdiabat != null">
|
||||||
"adiabat",
|
"real_adiabat",
|
||||||
</if>
|
</if>
|
||||||
<if test="charge != null">
|
<if test="forecastAdiabat != null">
|
||||||
"charge",
|
"forecast_adiabat",
|
||||||
</if>
|
</if>
|
||||||
<if test="assembly != null">
|
<if test="realCharge != null">
|
||||||
"assembly",
|
"real_charge",
|
||||||
</if>
|
</if>
|
||||||
<if test="deliver != null">
|
<if test="forecastCharge != null">
|
||||||
"deliver",
|
"forecast_charge",
|
||||||
|
</if>
|
||||||
|
<if test="realAssembly != null">
|
||||||
|
"real_assembly",
|
||||||
|
</if>
|
||||||
|
<if test="forecastAssembly != null">
|
||||||
|
"forecast_assembly",
|
||||||
|
</if>
|
||||||
|
<if test="realDeliver != null">
|
||||||
|
"real_deliver",
|
||||||
|
</if>
|
||||||
|
<if test="forecastDeliver != null">
|
||||||
|
"forecast_deliver",
|
||||||
</if>
|
</if>
|
||||||
<if test="review != null">
|
<if test="review != null">
|
||||||
"review",
|
"review",
|
||||||
@ -118,17 +146,29 @@
|
|||||||
<if test="productionNumber != null">
|
<if test="productionNumber != null">
|
||||||
#{productionNumber,jdbcType=VARCHAR},
|
#{productionNumber,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="adiabat != null">
|
<if test="realAdiabat != null">
|
||||||
#{adiabat,jdbcType=VARCHAR},
|
#{realAdiabat},
|
||||||
</if>
|
</if>
|
||||||
<if test="charge != null">
|
<if test="forecastAdiabat != null">
|
||||||
#{charge,jdbcType=VARCHAR},
|
#{forecastAdiabat},
|
||||||
</if>
|
</if>
|
||||||
<if test="assembly != null">
|
<if test="realCharge != null">
|
||||||
#{assembly,jdbcType=VARCHAR},
|
#{realCharge},
|
||||||
</if>
|
</if>
|
||||||
<if test="deliver != null">
|
<if test="forecastCharge != null">
|
||||||
#{deliver,jdbcType=VARCHAR},
|
#{forecastCharge},
|
||||||
|
</if>
|
||||||
|
<if test="realAssembly != null">
|
||||||
|
#{realAssembly},
|
||||||
|
</if>
|
||||||
|
<if test="forecastAssembly != null">
|
||||||
|
#{forecastAssembly},
|
||||||
|
</if>
|
||||||
|
<if test="realDeliver != null">
|
||||||
|
#{realDeliver},
|
||||||
|
</if>
|
||||||
|
<if test="forecastDeliver != null">
|
||||||
|
#{forecastDeliver},
|
||||||
</if>
|
</if>
|
||||||
<if test="review != null">
|
<if test="review != null">
|
||||||
#{review,jdbcType=VARCHAR},
|
#{review,jdbcType=VARCHAR},
|
||||||
@ -149,17 +189,29 @@
|
|||||||
<if test="productionNumber != null">
|
<if test="productionNumber != null">
|
||||||
"production_number" = #{productionNumber,jdbcType=VARCHAR},
|
"production_number" = #{productionNumber,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="adiabat != null">
|
<if test="realAdiabat != null">
|
||||||
"adiabat" = #{adiabat,jdbcType=VARCHAR},
|
"real_adiabat" = #{realAdiabat},
|
||||||
</if>
|
</if>
|
||||||
<if test="charge != null">
|
<if test="forecastAdiabat != null">
|
||||||
"charge" = #{charge,jdbcType=VARCHAR},
|
"forecast_adiabat" = #{forecastAdiabat},
|
||||||
</if>
|
</if>
|
||||||
<if test="assembly != null">
|
<if test="realCharge != null">
|
||||||
"assembly" = #{assembly,jdbcType=VARCHAR},
|
"real_charge" = #{realCharge},
|
||||||
</if>
|
</if>
|
||||||
<if test="deliver != null">
|
<if test="forecastCharge != null">
|
||||||
"deliver" = #{deliver,jdbcType=VARCHAR},
|
"forecast_charge" = #{forecastCharge},
|
||||||
|
</if>
|
||||||
|
<if test="realAssembly != null">
|
||||||
|
"real_assembly" = #{realAssembly},
|
||||||
|
</if>
|
||||||
|
<if test="forecastAssembly != null">
|
||||||
|
"forecast_assembly" = #{forecastAssembly},
|
||||||
|
</if>
|
||||||
|
<if test="realDeliver != null">
|
||||||
|
"real_deliver" = #{realDeliver},
|
||||||
|
</if>
|
||||||
|
<if test="forecastDeliver != null">
|
||||||
|
"forecast_deliver" = #{forecastDeliver},
|
||||||
</if>
|
</if>
|
||||||
<if test="review != null">
|
<if test="review != null">
|
||||||
"review" = #{review,jdbcType=VARCHAR},
|
"review" = #{review,jdbcType=VARCHAR},
|
||||||
@ -212,10 +264,14 @@
|
|||||||
<select id="getModelProductionStatisticPic" resultType="map">
|
<select id="getModelProductionStatisticPic" resultType="map">
|
||||||
select "product_model" as "model",
|
select "product_model" as "model",
|
||||||
sum("production_number") as "productionNumber",
|
sum("production_number") as "productionNumber",
|
||||||
sum("adiabat") as "adiabat",
|
sum("real_adiabat") as "realAdiabat",
|
||||||
sum("charge") as "charge",
|
sum("forecast_adiabat") as "forecastAdiabat",
|
||||||
sum("assembly") as "assembly",
|
sum("real_charge") as "realCharge",
|
||||||
sum("deliver") as "deliver",
|
sum("forecast_charge") as "forecastCharge",
|
||||||
|
sum("real_assembly") as "realAssembly",
|
||||||
|
sum("forecast_assembly") as "forecastAssembly",
|
||||||
|
sum("real_deliver") as "realDeliver",
|
||||||
|
sum("forecast_deliver") as "forecastDeliver",
|
||||||
sum("review") as "review",
|
sum("review") as "review",
|
||||||
sum("settlement") as "settlement"
|
sum("settlement") as "settlement"
|
||||||
from ROOT."hx_production_plan"
|
from ROOT."hx_production_plan"
|
||||||
|
|||||||
Reference in New Issue
Block a user