| | |
| | | @TableField(exist = false) |
| | | private String key; |
| | | |
| | | @JsonIgnore |
| | | public String getKey() { |
| | | if (key == null) { |
| | | if (key == null && getPredictDate() != null) { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); |
| | | key = getFactory() + "##" + getMaterialCode() + "##" + sdf.format(getPredictDate()); |
| | | } |
| | |
| | | @TableField(exist = false) |
| | | private String key; |
| | | |
| | | @JsonIgnore |
| | | public String getKey() { |
| | | if (key == null) { |
| | | key = getFactory() + "##" + getMaterialCode(); |
| | |
| | | <if test="planEnd != null and planEnd != ''"> and plan_end = #{planEnd}</if> |
| | | <if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectApsGasPipelineMoById" parameterType="Long" resultMap="ApsGasPipelineMoResult"> |
| | |
| | | <if test="predictDate != null and predictDate != ''"> and predict_date = #{predictDate}</if> |
| | | <if test="predictQuantity != null and predictQuantity != ''"> and predict_quantity = #{predictQuantity}</if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectApsGasPipelinePredictionById" parameterType="Long" resultMap="ApsGasPipelinePredictionResult"> |
| | |
| | | <if test="isMain != null and isMain != ''"> and is_main = #{isMain}</if> |
| | | <if test="materialType != null and materialType != ''"> and material_type = #{materialType}</if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectApsMaterialProductGroupManagementById" parameterType="Long" resultMap="ApsMaterialProductGroupManagementResult"> |